summaryrefslogtreecommitdiff
path: root/src/mod_scgi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mod_scgi.c')
-rw-r--r--src/mod_scgi.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mod_scgi.c b/src/mod_scgi.c
index ac93d331..94a5d65d 100644
--- a/src/mod_scgi.c
+++ b/src/mod_scgi.c
@@ -2438,20 +2438,6 @@ static handler_t scgi_write_request(server *srv, handler_ctx *hctx) {
if (hctx->wb->bytes_out == hctx->wb_reqlen) {
fdevent_event_clr(srv->ev, &(hctx->fde_ndx), hctx->fd, FDEVENT_OUT);
- #if (defined(__APPLE__) && defined(__MACH__)) \
- || defined(__FreeBSD__) || defined(__NetBSD__) \
- || defined(__OpenBSD__) || defined(__DragonflyBSD__)
- /*(*BSD stack on remote might signal POLLHUP and remote
- * might treat as socket error instead of half-close)*/
- #else
- /*(remote could be different machine running affected OS,
- * so only issue shutdown for known local sockets)*/
- if ( '/' == host->host->ptr[0]
- || buffer_is_equal_string(host->host, CONST_STR_LEN("127.0.0.1"))
- || buffer_is_equal_string(host->host, CONST_STR_LEN("::1"))) {
- shutdown(hctx->fd, SHUT_WR);
- }
- #endif
scgi_set_state(srv, hctx, FCGI_STATE_READ);
} else {
off_t wblen = hctx->wb->bytes_in - hctx->wb->bytes_out;