Ticket #1521 (closed bug: fixed)

Opened 6 years ago

Last modified 6 years ago

Comet not working under Windows

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

Description

(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 ('127.0.0.1',
53205)
Traceback (most recent call last):

File "D:\Nagare\lib\site-packages\paste-1.7.5.1-py2.7.egg\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

finish_request

self.RequestHandlerClass?(request, client_address, self)

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

self.handle()

File "D:\Nagare\lib\site-packages\paste-1.7.5.1-py2.7.egg\paste

\httpserver.py", line 442, in handle

BaseHTTPRequestHandler.handle(self)

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

self.handle_one_request()

File "D:\Nagare\lib\site-packages\paste-1.7.5.1-py2.7.egg\paste

\httpserver.py", line 437, in handle_one_request

self.wsgi_execute()

File "D:\Nagare\lib\site-packages\paste-1.7.5.1-py2.7.egg\paste

\httpserver.py", line 287, in wsgi_execute

self.wsgi_start_response)

File "D:\Nagare\lib\site-packages\paste-1.7.5.1-py2.7.egg\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

self.discard_disconnected_clients()

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

\comet.py", line 246, in discard_disconnected_clients

channel.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 6 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 6 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.