MCPcopy Create free account
hub / github.com/apple/foundationdb / closeSocket

Function closeSocket

flow/Net2.actor.cpp:1149–1156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1147 }
1148
1149 void closeSocket() {
1150 boost::system::error_code cancelError;
1151 socket.cancel(cancelError);
1152 boost::system::error_code closeError;
1153 socket.close(closeError);
1154 boost::system::error_code shutdownError;
1155 ssl_sock.shutdown(shutdownError);
1156 }
1157
1158 void onReadError(const boost::system::error_code& error) {
1159 TraceEvent(SevWarn, "N2_ReadError", id)

Callers 9

closeMethod · 0.85
onReadErrorMethod · 0.85
onWriteErrorMethod · 0.85
closeMethod · 0.85
onReadErrorMethod · 0.85
onWriteErrorMethod · 0.85
closeMethod · 0.85
onReadErrorFunction · 0.85
onWriteErrorFunction · 0.85

Calls 3

cancelMethod · 0.65
closeMethod · 0.65
shutdownMethod · 0.45

Tested by

no test coverage detected