Re: [Twisted-Python] PB and unstable network

2010-05-25 Thread Yaroslav Fedevych
In your case, I would suggest that the server sends some sort of ACK after it has received the payload from client, and the client must send the same kind of ACK in response. Only after that would the server consider operation complete, otherwise it would either inform the client that the previous

Re: [Twisted-Python] turning off chunked transfer-encoding

2010-05-25 Thread Michael P. Soulier
On 25/05/10 Itamar Turner-Trauring said: > Chunked encoding has nothing to do with the content type. It is used if > you do not set a content-length header. > > So, figure out your response's length (in bytes), and set the > content-length header to that. I'll try that, thanks. Mike -- Michael

Re: [Twisted-Python] PB and unstable network

2010-05-25 Thread Viktor Klimov
Hi Glyph, sorry for my english. My server.py save last answer(see User.perspectiveMessageReceived). Client when an error occurs(in callRemote) schedule reconnect. After reconnect client call remote method which return last answer. It works if disconnect happened when server send data to client(_