projects
/
IOMultiplexer.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[IOMultiplexerV2] tidied up _IOSocket socket_flag definitions and added possibility...
[IOMultiplexer.git]
/
src
/
IOHandler
/
IOEngine_select.c
diff --git
a/src/IOHandler/IOEngine_select.c
b/src/IOHandler/IOEngine_select.c
index c0405f4f89e50c93e42ebc8a4c2d5e2bd211b06c..0d95116cd1303b2c15f5e10c2fa57d2a75345f57 100644
(file)
--- a/
src/IOHandler/IOEngine_select.c
+++ b/
src/IOHandler/IOEngine_select.c
@@
-93,8
+93,9
@@
static void engine_select_loop(struct timeval *timeout) {
continue;
if(iosock->fd > fds_size)
fds_size = iosock->fd;
- FD_SET(iosock->fd, &read_fds);
select_result++;
+ if(iosocket_wants_reads(iosock))
+ FD_SET(iosock->fd, &read_fds);
if(iosocket_wants_writes(iosock))
FD_SET(iosock->fd, &write_fds);
}