Ticket #1521 (closed bug: fixed)

Opened 8 years ago

Last modified 8 years ago

Comet not working under Windows

Reported by: bradipoplacido Owned by: apoirier
Priority: major Component: publishers
Version: 0.3.0 Keywords:


(from  http://groups.google.com/group/nagare-users/browse_thread/thread/ab5bcdd9441e27cd)

I ave followed the instruction for installing Python 2.7.1 Stackless
and Nagare and examples
on my Win7 Ultimate 64bit
Other examples go ok, but the chat demo give me this

Exception happened during processing of request from ('',
Traceback (most recent call last):

File "D:\Nagare\lib\site-packages\paste-\paste

\httpserver.py", line 1068, in process_request_in_thread

self.finish_request(request, client_address)

File "D:\Python27sl\Lib\SocketServer?.py", line 323, in


self.RequestHandlerClass?(request, client_address, self)

File "D:\Python27sl\Lib\SocketServer?.py", line 639, in init


File "D:\Nagare\lib\site-packages\paste-\paste

\httpserver.py", line 442, in handle


File "D:\Python27sl\Lib\BaseHTTPServer.py", line 337, in handle


File "D:\Nagare\lib\site-packages\paste-\paste

\httpserver.py", line 437, in handle_one_request


File "D:\Nagare\lib\site-packages\paste-\paste

\httpserver.py", line 287, in wsgi_execute


File "D:\Nagare\lib\site-packages\paste-\paste

\urlmap.py", line 203, in call

return app(environ, start_response)

File "D:\Nagare\lib\site-packages\nagare-0.4.1-py2.7.egg\nagare

\wsgi.py", line 376, in call

comet.channels.connect(channel_id, int(nb),

environwsgi.input?.file.fileno(), response)

File "D:\Nagare\lib\site-packages\nagare-0.4.1-py2.7.egg\nagare

\comet.py", line 240, in connect


File "D:\Nagare\lib\site-packages\nagare-0.4.1-py2.7.egg\nagare

\comet.py", line 246, in discard_disconnected_clients


File "D:\Nagare\lib\site-packages\nagare-0.4.1-py2.7.egg\nagare

\comet.py", line 113, in discard_disconnected_clients

clients_to_discard = select.select(self.clients, [], [], 0)[0]

error: (10022, 'An invalid argument was supplied')

Change History

comment:1 in reply to: ↑ description Changed 8 years ago by apoirier

Replying to bradipoplacido by crumble:

As stated in select documentation ( http://docs.python.org/library/select.html?highlight=select#select.select), three empty sequences as parameters for select does not work under windows.
I think at startup, as there is no client, self.clients is an empty sequence, therefore it fails under windows.

comment:2 Changed 8 years ago by Alain Poirier <alain.poirier@…>

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.