aboutsummaryrefslogtreecommitdiff
path: root/src/lib/connection_finish_forward.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/connection_finish_forward.c')
-rw-r--r--src/lib/connection_finish_forward.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/src/lib/connection_finish_forward.c b/src/lib/connection_finish_forward.c
index 335a03bf..1ea9aa31 100644
--- a/src/lib/connection_finish_forward.c
+++ b/src/lib/connection_finish_forward.c
@@ -55,34 +55,34 @@ MHD_connection_finish_forward_ (struct MHD_Connection *connection)
55 EPOLL_CTL_DEL, 55 EPOLL_CTL_DEL,
56 connection->socket_fd, 56 connection->socket_fd,
57 NULL)) ) 57 NULL)) )
58 { 58 {
59 MHD_PANIC (_("Failed to remove FD from epoll set\n")); 59 MHD_PANIC (_ ("Failed to remove FD from epoll set\n"));
60 } 60 }
61 if (urh->in_eready_list) 61 if (urh->in_eready_list)
62 { 62 {
63 EDLL_remove (daemon->eready_urh_head, 63 EDLL_remove (daemon->eready_urh_head,
64 daemon->eready_urh_tail, 64 daemon->eready_urh_tail,
65 urh); 65 urh);
66 urh->in_eready_list = false; 66 urh->in_eready_list = false;
67 } 67 }
68#endif /* EPOLL_SUPPORT */ 68#endif /* EPOLL_SUPPORT */
69 if (MHD_INVALID_SOCKET != urh->mhd.socket) 69 if (MHD_INVALID_SOCKET != urh->mhd.socket)
70 { 70 {
71#if EPOLL_SUPPORT 71#if EPOLL_SUPPORT
72 if ( (MHD_ELS_EPOLL == daemon->event_loop_syscall) && 72 if ( (MHD_ELS_EPOLL == daemon->event_loop_syscall) &&
73 (0 != epoll_ctl (daemon->epoll_upgrade_fd, 73 (0 != epoll_ctl (daemon->epoll_upgrade_fd,
74 EPOLL_CTL_DEL, 74 EPOLL_CTL_DEL,
75 urh->mhd.socket, 75 urh->mhd.socket,
76 NULL)) ) 76 NULL)) )
77 { 77 {
78 MHD_PANIC (_("Failed to remove FD from epoll set\n")); 78 MHD_PANIC (_ ("Failed to remove FD from epoll set\n"));
79 }
80#endif /* EPOLL_SUPPORT */
81 /* Reflect remote disconnect to application by breaking
82 * socketpair connection. */
83 shutdown (urh->mhd.socket,
84 SHUT_RDWR);
85 } 79 }
80#endif /* EPOLL_SUPPORT */
81 /* Reflect remote disconnect to application by breaking
82 * socketpair connection. */
83 shutdown (urh->mhd.socket,
84 SHUT_RDWR);
85 }
86 /* Socketpair sockets will remain open as they will be 86 /* Socketpair sockets will remain open as they will be
87 * used with MHD_UPGRADE_ACTION_CLOSE. They will be 87 * used with MHD_UPGRADE_ACTION_CLOSE. They will be
88 * closed by MHD_cleanup_upgraded_connection_() during 88 * closed by MHD_cleanup_upgraded_connection_() during