pve-http-server/PVE/APIServer
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
..
Formatter api-server: extract, set and handle API token header 2020-01-28 20:43:51 +01:00
AnyEvent.pm accept-phase: shutdown socket on early error 2020-12-10 20:23:38 +01:00
Formatter.pm api-server: extract, set and handle API token header 2020-01-28 20:43:51 +01:00
Utils.pm Add short comment about users of read_proxy_config 2019-02-26 07:05:33 +01:00