mirror of
https://github.com/Xahau/xahaud.git
synced 2025-11-04 18:55:49 +00:00
Correctly handle connections that fail security checks (RIPD-1114):
* Return error code 400 to the peer along with a descriptive message * Release the slot and decrement IP connection counters.
This commit is contained in:
@@ -276,6 +276,11 @@ private:
|
||||
makeRedirectResponse (PeerFinder::Slot::ptr const& slot,
|
||||
http_request_type const& request, address_type remote_address);
|
||||
|
||||
std::shared_ptr<Writer>
|
||||
makeErrorResponse (PeerFinder::Slot::ptr const& slot,
|
||||
http_request_type const& request, address_type remote_address,
|
||||
std::string msg);
|
||||
|
||||
bool
|
||||
processRequest (http_request_type const& req,
|
||||
Handoff& handoff);
|
||||
|
||||
Reference in New Issue
Block a user