mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 280661 - SOCKS proxy server connection timeout hard-coded; r=bzbarsky
This commit is contained in:
parent
1eed9ae919
commit
9f892a74c3
@ -1227,6 +1227,16 @@ nsSocketTransport::InitiateSocket()
|
||||
}
|
||||
}
|
||||
//
|
||||
// A SOCKS request was rejected; get the actual error code from
|
||||
// the OS error
|
||||
//
|
||||
else if (PR_UNKNOWN_ERROR == code &&
|
||||
mProxyTransparent &&
|
||||
!mProxyHost.IsEmpty()) {
|
||||
code = PR_GetOSError();
|
||||
rv = ErrorAccordingToNSPR(code);
|
||||
}
|
||||
//
|
||||
// The connection was refused...
|
||||
//
|
||||
else {
|
||||
@ -1549,7 +1559,16 @@ nsSocketTransport::OnSocketReady(PRFileDesc *fd, PRInt16 outFlags)
|
||||
mPollFlags = (PR_POLL_EXCEPT | PR_POLL_WRITE);
|
||||
// Update poll timeout in case it was changed
|
||||
mPollTimeout = mTimeouts[TIMEOUT_CONNECT];
|
||||
}
|
||||
}
|
||||
//
|
||||
// The SOCKS proxy rejected our request. Find out why.
|
||||
//
|
||||
else if (PR_UNKNOWN_ERROR == code &&
|
||||
mProxyTransparent &&
|
||||
!mProxyHost.IsEmpty()) {
|
||||
code = PR_GetOSError();
|
||||
mCondition = ErrorAccordingToNSPR(code);
|
||||
}
|
||||
else {
|
||||
//
|
||||
// else, the connection failed...
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user