aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-27 08:47:09 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2004-11-27 08:47:09 +0000
commit50da56dbeeec0cc7856ac06057cb778b502e087b (patch)
treef434fde619f7989a5c7b381b6480f32f685ba869
parent7c97e8e40aaa665226fb54449773dc3134e755b2 (diff)
downloadluasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.tar.gz
luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.tar.bz2
luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.zip
Using poll instead of select by default.
-rw-r--r--FIX10
-rw-r--r--src/usocket.c2
2 files changed, 11 insertions, 1 deletions
diff --git a/FIX b/FIX
index 5c31d3c..a7f244f 100644
--- a/FIX
+++ b/FIX
@@ -1,3 +1,13 @@
1automated tests for ftp now in use
2new compat-5.1 distribution
3 instalation should use new directory structure
4 namespace hierarchy is in now back in use (socket.url instead of url)
5 globals not visible from inside namespaces
6 all modules call "require" even for standard libraries
7kludge on wsocket.c:sock_send for windows moved to buffer.c:sendraw
8socket.protect only catches errors thrown by socke.try
9udp:sendto was calling sock_send
10close wasn't returning 1
1gettime returns time since Unix Epoch 1/1/1970 (UTC) 11gettime returns time since Unix Epoch 1/1/1970 (UTC)
2sleep is robust to interrupts 12sleep is robust to interrupts
3select had a stupid bug 13select had a stupid bug
diff --git a/src/usocket.c b/src/usocket.c
index 62a2557..2143c7d 100644
--- a/src/usocket.c
+++ b/src/usocket.c
@@ -16,7 +16,7 @@
16/*-------------------------------------------------------------------------*\ 16/*-------------------------------------------------------------------------*\
17* Wait for readable/writable/connected socket with timeout 17* Wait for readable/writable/connected socket with timeout
18\*-------------------------------------------------------------------------*/ 18\*-------------------------------------------------------------------------*/
19#ifdef SOCK_POLL 19#ifndef SOCK_SELECT
20#include <sys/poll.h> 20#include <sys/poll.h>
21 21
22#define WAITFD_R POLLIN 22#define WAITFD_R POLLIN