diff options
Diffstat (limited to 'net/ftp/ftp_network_transaction.cc')
-rw-r--r-- | net/ftp/ftp_network_transaction.cc | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/net/ftp/ftp_network_transaction.cc b/net/ftp/ftp_network_transaction.cc index ec87b8c..1a7c67f 100644 --- a/net/ftp/ftp_network_transaction.cc +++ b/net/ftp/ftp_network_transaction.cc @@ -1174,6 +1174,15 @@ void FtpNetworkTransaction::RecordDataConnectionError(int result) { // Connection has been refused. NET_ERROR_CONNECTION_REFUSED = 4, + // No connection to the internet. + NET_ERROR_INTERNET_DISCONNECTED = 5, + + // Could not resolve the destination address. + NET_ERROR_ADDRESS_NOT_FOUND = 6, + + // A programming error in our network stack. + NET_ERROR_UNEXPECTED = 7, + // Other kind of error. NET_ERROR_OTHER = 20, @@ -1189,13 +1198,25 @@ void FtpNetworkTransaction::RecordDataConnectionError(int result) { case ERR_TIMED_OUT: type = NET_ERROR_TIMED_OUT; break; - case ERR_CONNECTION_RESET: case ERR_CONNECTION_ABORTED: + case ERR_CONNECTION_RESET: + case ERR_CONNECTION_CLOSED: type = NET_ERROR_CONNECTION_BROKEN; break; + case ERR_CONNECTION_FAILED: case ERR_CONNECTION_REFUSED: type = NET_ERROR_CONNECTION_REFUSED; break; + case ERR_INTERNET_DISCONNECTED: + type = NET_ERROR_INTERNET_DISCONNECTED; + break; + case ERR_ADDRESS_INVALID: + case ERR_ADDRESS_UNREACHABLE: + type = NET_ERROR_ADDRESS_NOT_FOUND; + break; + case ERR_UNEXPECTED: + type = NET_ERROR_UNEXPECTED; + break; default: type = NET_ERROR_OTHER; break; |