5
0
mirror of git://git.proxmox.com/git/pve-http-server.git synced 2025-08-06 04:21:56 +03:00
Go to file
Stoiko Ivanov ebcaaf4606 accept-phase: shutdown socket on early error
if an error happens before AnyEvent::Handle registers the cleanup
callback, we should shutdown/close the socket, when handling it.

Using close, instead of shutdown($sock, SHUT_WR) here, since we are in
an error-state, and would not read from the socket anyways.
(Additionally close sends just on packet (RST,ACK), vs shutdown
(FIN,ACK+RST,ACK) in its use here).

Co-Authored-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
2020-12-10 20:23:38 +01:00
2020-07-02 09:44:16 +02:00
2017-01-21 16:08:36 +01:00
Description
No description provided
1.1 MiB
Languages
Perl 98.4%
Makefile 1.6%