c.routes = cfg.get('virtual','routes')
c.max_queue_time = cfg.getint(client_cs, 'max_queue_time')
c.max_batch_up = cfg.getint(client_cs, 'max_batch_up')
- c.http_timeout = cfg.getint(client_cs, 'http_timeout')
c.http_retry = cfg.getint(client_cs, 'http_retry')
+ c.http_timeout = (cfg.getint(client_cs, 'http_timeout') +
+ cfg.getint(client_cs, 'http_timeout_grace'))
process_cfg_ipif(client_cs,
(('local', 'client'),
self._log(DBG.HTTP_CTRL, '__init__')
def dataReceived(self, data):
- self._log(DBG.HTTP_CTRL, 'dataReceived', d=data)
+ self._log(DBG.HTTP, 'dataReceived', d=data)
try:
self._ssd.inputdata(data)
except Exception as e:
self.latefailure()
return
try:
+ self._log(DBG.HTTP, 'ResponseDone')
self._ssd.flush()
req_fin(self._req)
except Exception as e:
self._latefailure(traceback.format_exc())
def _latefailure(self, reason):
- self._log(DBG.HTTP_CTRL, '_asyncFailure ' + str(reason))
+ self._log(DBG.HTTP_CTRL, '_latefailure ' + str(reason))
req_err(self._req, reason)
class ErrorResponseConsumer(twisted.internet.protocol.Protocol):
str(c.client) .encode('ascii') + crlf +
password + crlf +
str(c.target_outstanding) .encode('ascii') + crlf +
+ str(c.http_timeout) .encode('ascii') + crlf +
((
b'--b' + crlf +
b'Content-Type: application/octet-stream' + crlf +