Trying to get rid of EINTR problems...
This commit is contained in:
parent
076451c753
commit
02ef4e7daa
8 changed files with 63 additions and 25 deletions
|
@ -2,6 +2,13 @@
|
|||
* Socket compatibilization module for Win32
|
||||
* LuaSocket toolkit
|
||||
*
|
||||
* We also exchanged the order of the calls to send/recv and select.
|
||||
* The idea is that the outer loop (whoever is calling sock_send/recv)
|
||||
* will call the function again if we didn't time out, so we can
|
||||
* call write and then select only if it fails. This moves the penalty
|
||||
* to when data is not available, maximizing the bandwidth if data is
|
||||
* always available.
|
||||
*
|
||||
* RCS ID: $Id$
|
||||
\*=========================================================================*/
|
||||
#include <string.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue