socket: connection reset by server before client gets response

ahlongxp ahlongxp at gmail.com
Sat Jul 7 10:51:47 EDT 2007


Hi, everyone,

    I'm implementing a simple client/server protocol.

    Now I've got a situation:
client will send server command,header paires and optionally body.
server checks headers and decides whether to accept(read) the body.
if server decided to throw(dump) the request's body, it'll send back a
response message, such as  "resource already exists" and close the
connection.
the problem is, client will never get the response but a "peer reset"
exception.


any comments or help will be appreciated.

--
ahlongxp

Software College,Northeastern University,China
ahlongxp at gmail.com
http://www.herofit.cn




More information about the Python-list mailing list