mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
adds new error codes for handshake timeouts
This commit is contained in:
@@ -102,7 +102,13 @@ enum value {
|
||||
server_only,
|
||||
|
||||
/// HTTP connection ended
|
||||
http_connection_ended
|
||||
http_connection_ended,
|
||||
|
||||
/// WebSocket opening handshake timed out
|
||||
open_handshake_timeout,
|
||||
|
||||
/// WebSocket close handshake timed out
|
||||
close_handshake_timeout
|
||||
}; // enum value
|
||||
|
||||
|
||||
@@ -158,6 +164,10 @@ public:
|
||||
return "Feature not available on client endpoints";
|
||||
case error::http_connection_ended:
|
||||
return "HTTP connection ended";
|
||||
case error::open_handshake_timeout:
|
||||
return "The opening handshake timed out";
|
||||
case error::close_handshake_timeout:
|
||||
return "The closing handshake timed out";
|
||||
default:
|
||||
return "Unknown";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user