projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70e7c09
)
ustream: only report stream eof once via state_change callback
author
Felix Fietkau
<nbd@openwrt.org>
Fri, 31 May 2013 09:18:26 +0000
(11:18 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Fri, 31 May 2013 09:18:26 +0000
(11:18 +0200)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
ustream-fd.c
patch
|
blob
|
history
diff --git
a/ustream-fd.c
b/ustream-fd.c
index c8f0ef9aa1b2aa4dca63a1eed1dbe9d91cf9b492..4abb53053bbc2bb6440cb31051851cee71e112e2 100644
(file)
--- a/
ustream-fd.c
+++ b/
ustream-fd.c
@@
-66,8
+66,9
@@
static void ustream_fd_read_pending(struct ustream_fd *sf, bool *more)
}
if (!len) {
+ if (!s->eof)
+ ustream_state_change(s);
s->eof = true;
- ustream_state_change(s);
ustream_fd_set_uloop(s, false);
return;
}