fixes bug 270784 "IPv6: retry socket connection on EACCES" patch by lorenzo@colitti.com r+sr=darin

This commit is contained in:
darin%meer.net 2004-11-28 21:35:48 +00:00
Родитель bde59d7b51
Коммит ed62e4e4a4
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -171,6 +171,10 @@ ErrorAccordingToNSPR(PRErrorCode errorCode)
case PR_NETWORK_UNREACHABLE_ERROR: // XXX need new nsresult for this!
case PR_HOST_UNREACHABLE_ERROR: // XXX and this!
case PR_ADDRESS_NOT_AVAILABLE_ERROR:
// Treat EACCES as a soft error since (at least on Linux) connect() returns
// EACCES when an IPv6 connection is blocked by a firewall. See bug 270784.
case PR_ADDRESS_NOT_SUPPORTED_ERROR:
case PR_NO_ACCESS_RIGHTS_ERROR:
rv = NS_ERROR_CONNECTION_REFUSED;
break;
case PR_IO_TIMEOUT_ERROR: