Roundup Tracker - Issues

Issue 2550750

classification
Title: Handling of socket timeouts
Type: behavior Severity: normal
Components: Web interface Versions: devel
process
Status: new Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: ber, jerrykan, joseph_myers
Priority: normal Keywords: patch

Created on 2012-03-18 21:30 by joseph_myers, last changed 2012-08-28 03:48 by jerrykan.

Files
File name Uploaded Description Edit Remove
no-timeout-mail-patch joseph_myers, 2012-03-18 21:30 patch to socket error handling
Messages
msg4518 Author: [hidden] (joseph_myers) Date: 2012-03-18 21:30
Roundup tries to detect certain network errors and not report them to
the tracker admin (roundup/cgi/client.py, IGNORE_NET_ERRORS).  This does
not work reliably for timeouts, which produce the socket.timeout
exception rather than socket.error with ETIMEDOUT.

The attached patch deals with this by checking for socket.timeout before
socket.error.
msg4519 Author: [hidden] (ber) Date: 2012-03-19 08:28
Joseph,
thanks for the report and the patch.
Next step would be to get another person to confirm both.

Do you know an easy way to reproduce the issue for testing?
Bernhard
msg4520 Author: [hidden] (joseph_myers) Date: 2012-03-19 09:10
I don't have a way of reproducing timeouts on demand.  I generally 
observed the timeout exceptions being reported for large static images 
served through Roundup (and empirically observed that the exception emails 
did not appear for a month of having the patch installed, having been 
quite frequent before then).
History
Date User Action Args
2012-08-28 03:48:08jerrykansetnosy: + jerrykan
2012-03-19 09:10:28joseph_myerssetmessages: + msg4520
2012-03-19 08:28:54bersetpriority: normal
nosy: + ber
messages: + msg4519
keywords: + patch
2012-03-18 21:30:57joseph_myerscreate