MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / fail

Method fail

Libraries/Http/HttpAsyncClient.cpp:932–944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

930 {
931 transportClose();
932 }
933 connection->readableSocketStream.destroy();
934 connection->writableSocketStream.destroy();
935 connection->resetTransportStreams();
936 if (connection->socket.isValid())
937 {
938 (void)connection->socket.close();
939 }
940 hasOpenConnection = false;
941 currentProtocol = {};
942 currentHost = {};
943 currentPort = 0;
944 webSocketUpgraded = false;
945}
946
947void HttpAsyncClient::fail(Result error)

Callers

nothing calls this directly

Calls 4

onErrorFunction · 0.85
failBodyStreamMethod · 0.80
abortBodyStreamMethod · 0.80
isValidMethod · 0.45

Tested by

no test coverage detected