MCPcopy Create free account
hub / github.com/catboost/catboost / ShutdownReceived

Method ShutdownReceived

library/cpp/neh/https.cpp:415–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

413 }
414
415 bool ShutdownReceived() {
416 if (!Ssl) {
417 return false;
418 }
419 char buffer;
420 int rval = SSL_peek(Ssl.Get(), &buffer, sizeof(buffer));
421 if (rval) {
422 return false;
423 }
424 return (SSL_get_shutdown(Ssl.Get()) & SSL_RECEIVED_SHUTDOWN);
425 }
426
427 SOCKET Fd() {
428 return *Socket;

Callers 2

ConnectMethod · 0.80
PurgeCacheMethod · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected