leopart listen failure workaround

This commit is contained in:
Arvid Norberg 2008-04-03 04:35:56 +00:00
parent cab106adad
commit 77f9278a36
1 changed files with 9 additions and 0 deletions

View File

@ -640,6 +640,15 @@ namespace aux {
async_accept(listener);
return;
}
#endif
#ifdef TORRENT_BSD
// Leopard sometimes generates an "invalid argument" error. It seems to be
// non-fatal and we have to do another async_accept.
if (e.value() == EINVAL)
{
async_accept(listener);
return;
}
#endif
if (m_alerts.should_post(alert::fatal))
{