##// END OF EJS Templates
wireproto/http: drain the incoming bundle in case of errors
Benoit Boissinot -
r12704:ca6e2adc default
parent child Browse files
Show More
@@ -67,6 +67,8 b' def call(repo, req, cmd):'
67 req.respond(HTTP_OK, HGTYPE)
67 req.respond(HTTP_OK, HGTYPE)
68 return ['%d\n%s' % (rsp.res, val)]
68 return ['%d\n%s' % (rsp.res, val)]
69 elif isinstance(rsp, wireproto.pusherr):
69 elif isinstance(rsp, wireproto.pusherr):
70 # drain the incoming bundle
71 req.drain()
70 sys.stdout, sys.stderr = p.oldio
72 sys.stdout, sys.stderr = p.oldio
71 rsp = '0\n%s\n' % rsp.res
73 rsp = '0\n%s\n' % rsp.res
72 req.respond(HTTP_OK, HGTYPE, length=len(rsp))
74 req.respond(HTTP_OK, HGTYPE, length=len(rsp))
General Comments 0
You need to be logged in to leave comments. Login now