diff options
Diffstat (limited to 'net/socket')
-rw-r--r-- | net/socket/client_socket_handle.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/net/socket/client_socket_handle.h b/net/socket/client_socket_handle.h index 25a2f35..83aa70f 100644 --- a/net/socket/client_socket_handle.h +++ b/net/socket/client_socket_handle.h @@ -104,19 +104,6 @@ class ClientSocketHandle { return UNUSED_IDLE; } } - bool ShouldResendFailedRequest(int error) const { - // NOTE: we resend a request only if we reused a keep-alive connection. - // This automatically prevents an infinite resend loop because we'll run - // out of the cached keep-alive connections eventually. - if ( // We used a socket that was never idle. - reuse_type() == ClientSocketHandle::UNUSED || - // We used an unused, idle socket and got a error that wasn't a TCP RST. - (reuse_type() == ClientSocketHandle::UNUSED_IDLE && - (error != OK && error != ERR_CONNECTION_RESET))) { - return false; - } - return true; - } private: // Called on asynchronous completion of an Init() request. |