From: Ian Jackson Date: Sat, 1 Apr 2017 22:07:16 +0000 (+0100) Subject: wip X-Git-Tag: hippotat/1.0.0~55^2~152 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=hippotat.git;a=commitdiff_plain;h=3d003cdd48892205849a0dd17ccbf4c6d3962cbc wip --- diff --git a/server b/server index 7c66edd..8a16c34 100755 --- a/server +++ b/server @@ -98,6 +98,10 @@ class Client(): self._rq.append(request) self._check_outbound() + def _req_write(self, req, d): + self._log(DBG.HTTP, 'req_write ', idof=req, d=d) + req.write(d) + def _check_outbound(self): log_debug(DBG.HTTP_CTRL, 'CHKO') while True: @@ -121,7 +125,7 @@ class Client(): self._log(DBG.HTTP_CTRL, 'CHKO processing', idof=request) # request, and also some non-expired packets self._pq.process((lambda: request.sentLength), - request.write, + (lambda d: self._req_write(request, d)), self.max_batch_down) assert(request.sentLength)