Re: [Twisted-Python] Porting Apache Mina to Twisted

2010-12-06 Thread exarkun
On 11:00 pm, devnetw...@gmail.com wrote: >Thank you for your response. > >Probably that works and also itamar's approach seems right. > >If connectionLost method is being called every disconnection (no >matter what reason is) my unregisterBySocket method handles that >situation already. I mean It

Re: [Twisted-Python] Porting Apache Mina to Twisted

2010-12-06 Thread Umut Aydin
Thank you for your response. Probably that works and also itamar's approach seems right. If connectionLost method is being called every disconnection (no matter what reason is) my unregisterBySocket method handles that situation already. I mean It s not possible to have disconnected socket in my

Re: [Twisted-Python] Porting Apache Mina to Twisted

2010-12-06 Thread Godson Gera
On Mon, Dec 6, 2010 at 7:41 PM, Umut Aydin wrote: > Hello again > > I couldn't get any answer to my question and I think I couldn't point > my problem clearly. > > https://github.com/naimon/Jobbar/blob/master/src/lib/server.py > > On the line #130 I need to check if the socket is still connected.

Re: [Twisted-Python] Porting Apache Mina to Twisted

2010-12-06 Thread Itamar Turner-Trauring
On Mon, 2010-12-06 at 16:11 +0200, Umut Aydin wrote: > Hello again > > I couldn't get any answer to my question and I think I couldn't point > my problem clearly. > > https://github.com/naimon/Jobbar/blob/master/src/lib/server.py > > On the line #130 I need to check if the socket is still connec

Re: [Twisted-Python] Porting Apache Mina to Twisted

2010-12-06 Thread Umut Aydin
Hello again I couldn't get any answer to my question and I think I couldn't point my problem clearly. https://github.com/naimon/Jobbar/blob/master/src/lib/server.py On the line #130 I need to check if the socket is still connected. That worker variable is a copy of self.transport actually. I ha

Re: [Twisted-Python] Porting Apache Mina to Twisted

2010-12-05 Thread Umut Aydin
Thank you for your response. I have another question. In my job server I collect worker connections into a key/value structure by their categories which means jobs and I send them some messages when a client connection made a request suitable with one of worker connections. The problem is that wor

Re: [Twisted-Python] Porting Apache Mina to Twisted

2010-12-05 Thread Godson Gera
On Sun, Dec 5, 2010 at 4:07 PM, Umut Aydin wrote: > Hello everybody. Hope you have a good weekend. > > I'm trying to port my distributed job server project to twisted but I > have a few questions. > > I just tested twisted with protocol.Protocol socket handler class and > it seems like that it cr