When sending a nat-pmp packet, treat EHOSTDOWN as a temporary error.
This commit is contained in:
parent
0ac5a12189
commit
3388b93542
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue