Comment 6 for bug 1509083

Created attachment 30833
proposed patch v3

Even better patch. Now uses apr_socket_timeout_get.