When sending a nat-pmp packet, treat EHOSTDOWN as a temporary error.

This commit is contained in:
Josh Elsasser 2007-01-28 08:54:19 +00:00
parent 0ac5a12189
commit 3388b93542
1 changed files with 4 additions and 0 deletions

View File

@ -669,6 +669,10 @@ sendrequest( int adding, int fd, int port )
}
res = tr_netSend( fd, buf, sizeof( buf ) );
if( TR_NET_CLOSE & res && EHOSTUNREACH == errno )
{
res = TR_NET_BLOCK;
}
/* XXX is it all right to assume the entire thing is written? */
/* XXX I should handle blocking here */