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
Родитель 9a3f91d44b
Коммит 62d825da66
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: