Skip to content

Commit 60039aa

Browse files
committed
haproxy returns 408 when the request timeout strikes before the request is complete
1 parent 4ca8d08 commit 60039aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hubstorage/batchuploader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def _tryupload(self, batch):
144144
r = self._upload(batch)
145145
if 200 <= r.status_code < 300:
146146
break
147-
elif 500 <= r.status_code < 600:
147+
elif 500 <= r.status_code < 600 or r.status_code in (408,):
148148
r.raise_for_status()
149149
else:
150150
logger.warning('Discarding write to url=%s offset=%s: '

0 commit comments

Comments
 (0)