mirror of
https://github.com/lunarmodules/luasocket.git
synced 2024-12-25 20:18:21 +01:00
Using poll instead of select by default.
This commit is contained in:
parent
7c97e8e40a
commit
50da56dbee
10
FIX
10
FIX
@ -1,3 +1,13 @@
|
||||
automated tests for ftp now in use
|
||||
new compat-5.1 distribution
|
||||
instalation should use new directory structure
|
||||
namespace hierarchy is in now back in use (socket.url instead of url)
|
||||
globals not visible from inside namespaces
|
||||
all modules call "require" even for standard libraries
|
||||
kludge on wsocket.c:sock_send for windows moved to buffer.c:sendraw
|
||||
socket.protect only catches errors thrown by socke.try
|
||||
udp:sendto was calling sock_send
|
||||
close wasn't returning 1
|
||||
gettime returns time since Unix Epoch 1/1/1970 (UTC)
|
||||
sleep is robust to interrupts
|
||||
select had a stupid bug
|
||||
|
@ -16,7 +16,7 @@
|
||||
/*-------------------------------------------------------------------------*\
|
||||
* Wait for readable/writable/connected socket with timeout
|
||||
\*-------------------------------------------------------------------------*/
|
||||
#ifdef SOCK_POLL
|
||||
#ifndef SOCK_SELECT
|
||||
#include <sys/poll.h>
|
||||
|
||||
#define WAITFD_R POLLIN
|
||||
|
Loading…
Reference in New Issue
Block a user