Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de760c3
)
htpollflags: Return no poll flags if EOF has been reached.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 22 Jul 2007 02:31:42 +0000
(
04:31
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 22 Jul 2007 02:31:42 +0000
(
04:31
+0200)
common/http.c
patch
|
blob
|
blame
|
history
diff --git
a/common/http.c
b/common/http.c
index
0338905
..
8190f2d
100644
(file)
--- a/
common/http.c
+++ b/
common/http.c
@@
-163,6
+163,8
@@
int htpollflags(struct htconn *cn)
{
int ret;
+ if(cn->fd == -1)
+ return(0);
ret = POLLIN;
if((cn->state == STATE_SYN) || (cn->outbufdata > 0))
ret |= POLLOUT;