diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-27 08:47:09 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-27 08:47:09 +0000 |
commit | 50da56dbeeec0cc7856ac06057cb778b502e087b (patch) | |
tree | f434fde619f7989a5c7b381b6480f32f685ba869 | |
parent | 7c97e8e40aaa665226fb54449773dc3134e755b2 (diff) | |
download | luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.tar.gz luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.tar.bz2 luasocket-50da56dbeeec0cc7856ac06057cb778b502e087b.zip |
Using poll instead of select by default.
-rw-r--r-- | FIX | 10 | ||||
-rw-r--r-- | src/usocket.c | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,13 @@ | |||
1 | automated tests for ftp now in use | ||
2 | new 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 | ||
7 | kludge on wsocket.c:sock_send for windows moved to buffer.c:sendraw | ||
8 | socket.protect only catches errors thrown by socke.try | ||
9 | udp:sendto was calling sock_send | ||
10 | close wasn't returning 1 | ||
1 | gettime returns time since Unix Epoch 1/1/1970 (UTC) | 11 | gettime returns time since Unix Epoch 1/1/1970 (UTC) |
2 | sleep is robust to interrupts | 12 | sleep is robust to interrupts |
3 | select had a stupid bug | 13 | select 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 |