[Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
Hi, I am using twisted in a cross-platform manner. I have written both the client and server. The client is twisted and the server uses python threads. I am using the select reactor and plain old TCP connections. I encode my messages to JSON to send them. On Windows I get tons of un-clean connect

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Glyph Lefkowitz
On Jan 17, 2010, at 6:25 PM, Daniel Griffin wrote: > I am using twisted in a cross-platform manner. I have written both the client > and server. The client is twisted and the server uses python threads. I am > using the select reactor and plain old TCP connections. I encode my messages > to JS

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
Thank you for the response. I am using twisted 9.0 and tried 8.2. The python version is 2.6. When I print the reason sent to connection lost I get "[Failure instance: Traceback (failure with no frames): wrote: > > On Jan 17, 2010, at 6:25 PM, Daniel Griffin wrote: > > > I am using twisted in a cro

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
Here are two tiny apps. They run perfectly on OSX and error like this on windows: Log conenction [Failure instance: Traceback (failure with no frames): wrote: > Thank you for the response. I am using twisted 9.0 and tried 8.2. The > python version is 2.6. When I print the reason sent to connect

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Glyph Lefkowitz
On Jan 17, 2010, at 10:45 PM, Daniel Griffin wrote: > Here are two tiny apps. They run perfectly on OSX and error like this on > windows: > > Log conenction [Failure instance: Traceback (failure with no frames): 't > wisted.internet.error.ConnectionLost' Connection to the other side was lost

Re: [Twisted-Python] Plain windows sockets and twisted

2010-01-17 Thread Daniel Griffin
Awesome, in my actual code I already implemented something to see if I was "done" with the socket conversation. I was just getting really worried about the "non-clean" messages. Your explanation makes perfect sense. Thanks for the help. Dan On Sun, Jan 17, 2010 at 11:55 PM, Glyph Lefkowitz wrote: