repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
for UDP sockets, we ONLY wait for pollin events
[deb_libnfs.git]
/
lib
/
socket.c
diff --git
a/lib/socket.c
b/lib/socket.c
index 7a291346b7bb4d4f0f39f8cc728899441407c488..2c77ef64c549d3de2f1731a7a691d2a07d74e613 100644
(file)
--- a/
lib/socket.c
+++ b/
lib/socket.c
@@
-47,6
+47,11
@@
int rpc_which_events(struct rpc_context *rpc)
{
int events = rpc->is_connected ? POLLIN : POLLOUT;
+ if (rpc->is_udp != 0) {
+ /* for udp sockets we only wait for pollin */
+ return POLLIN;
+ }
+
if (rpc->outqueue) {
events |= POLLOUT;
}