flv / cometd

Automatically exported from code.google.com/p/cometd
0 stars 0 forks source link

Twisted Client stops receiving after 3 or so requests #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If you run any of the demos and hack the twisted-cometd-client.py client,
it will work (receive messages from the browser via server), but after 3
messages, will stop receiving anything.

The problem can be traced to a producer queue in the twisted code being
filled and never emptied.  For example, adding the following lines to the
beginning of the twisted-cometd-client.py code can "delay" the problem:

  import twisted.web2.stream
  twisted.web2.stream.ProducerStream.bufferSize = 5000

I haven't quite figured out what's going on _really_ yet.

Original issue reported on code.google.com by david.as...@gmail.com on 23 Feb 2007 at 11:18

GoogleCodeExporter commented 9 years ago
Duh.

The problem is that the .addCallback(_readResponse) is commented out at line 
181.

Uncomment it, and all is well.

Can someone w/ svn access do it?

Original comment by david.as...@gmail.com on 9 Mar 2007 at 11:37

GoogleCodeExporter commented 9 years ago
Committed revision 341.                                                         

Original comment by david.as...@gmail.com on 13 Mar 2007 at 4:12