[Twisted-Python] Don't Finalize Connection

Thomas Hommers thomas.hommers at ebalu.com
Mon Jul 22 20:15:32 MDT 2013


Hi,

i am fairly new to twisted and try to work my way trough the documentation.
There is a problem I can't find a solution for. Maybe somebody can give me a hint or point me into the right direction.

I am trying to create a TCP server. The client connects to the server, then the server will send multiple commands and binary data to the client. After the data has been send, the connection should stay open.

I subclass "Protocol" to create my protocol.
It seems that after i send data with self.transport.write(data) the last packet will be send with the "FP." flag, what seems to "Finalize" the connection from this end.

Is there a way to force twisted to just "Push" my data, but not to "Finalize" the connection?

Thanks.

Thomas


More information about the Twisted-Python mailing list