Re: [Twisted-Python] is twisted compatible with pickle?

2013-03-28 Thread Christopher Armstrong
> > On Thu, Mar 28, 2013 at 6:24 PM, succer...@tiscali.it < > succer...@tiscali.it> wrote: > >> I have made 2 application: >> The client extract data from a sql server (10k lines), and send every >> line pickled to a "collector" server via socket. >> The server uses twisted and receive every line,

Re: [Twisted-Python] is twisted compatible with pickle?

2013-03-28 Thread David Reid
dataReceived gets called with any data that is available on the socket. That might not be all data you sent on the other side. To ensure complete "messages" are delivered your application has to specify some framing, such as Netstrings. See: http://twistedmatrix.com/documents/current/api/twisted

[Twisted-Python] is twisted compatible with pickle?

2013-03-28 Thread succer...@tiscali.it
I have made 2 application: The client extract data from a sql server (10k lines), and send every line pickled to a "collector" server via socket.The server uses twisted and receive every line, unpikle it and store the data in another sql server. Everytime i start sending data from client to serv

Re: [Twisted-Python] Problems with TLS connection not shutting down.

2013-03-28 Thread Michael Williamson
Ah, I never tried abortConnection, but I'm doing something similar - I just call loseConnection() and that does the trick. And yes, I believe that the TCP connection does stay alive because I was watching closeSocket() and it was never called. I wish I could be more helpful with regard to code sa

Re: [Twisted-Python] Problems with TLS connection not shutting down.

2013-03-28 Thread Glyph
On Mar 28, 2013, at 9:24 AM, Michael Williamson wrote: > Hi, I'm having an issue where a tls connection never seems to shutdown > properly, and as a result, all the associated cleanup never happens. > > Basically we're trying to implement a jabber client and allow the user to > sign out and

[Twisted-Python] Twisted source, changes and social analysis

2013-03-28 Thread Jonathan Stoppani
Hello everybody (with access to the Trac DB), I am currently doing my master thesis on the "analysis and management of change propagation in complex systems". I'm concentrating my efforts on software-based complex systems. As part of my analysis, I gather data from different domains, such as depe

[Twisted-Python] Problems with TLS connection not shutting down.

2013-03-28 Thread Michael Williamson
Hi, I'm having an issue where a tls connection never seems to shutdown properly, and as a result, all the associated cleanup never happens. Basically we're trying to implement a jabber client and allow the user to sign out and then re-sign back in without completely quitting the program. When the