Commit 6e386ef6 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Lasse Karstensen

Set socket non-blocking before closing, if we are load-shedding it.

parent ddc87188
......@@ -313,9 +313,10 @@ vca_make_session(struct worker *wrk, void *arg)
* connection with minimum effort and fuzz, rather than try
* to send an intelligent message back.
*/
vca_pace_bad();
(void)VTCP_nonblocking(wa->acceptsock);
AZ(close(wa->acceptsock));
wrk->stats->sess_drop++;
vca_pace_bad();
WS_Release(wrk->aws, 0);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment