socket: connection reset by server before client gets response

ahlongxp ahlongxp at
Sat Jul 7 16:51:47 CEST 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
the problem is, client will never get the response but a "peer reset"

any comments or help will be appreciated.


Software College,Northeastern University,China
ahlongxp at

More information about the Python-list mailing list