aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/tcp.c b/tcp.c
index d5a45e4..6e4b99b 100644
--- a/tcp.c
+++ b/tcp.c
@@ -2639,9 +2639,7 @@ void tcp_sock_handler_splice(struct ctx *c, union epoll_ref ref,
}
}
- if (events & EPOLLHUP) {
- tcp_splice_state(conn, SPLICE_FIN_BOTH);
- } else if (events & EPOLLRDHUP) {
+ if (events & EPOLLRDHUP) {
if (ref.s == conn->from) {
if (conn->state == SPLICE_ESTABLISHED)
tcp_splice_state(conn, SPLICE_FIN_FROM);