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

Function PrepareSocket

library/cpp/neh/http2.cpp:185–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183#endif
184
185 inline void PrepareSocket(SOCKET s, const TRequestSettings& requestSettings = TRequestSettings()) {
186 if (requestSettings.NoDelay) {
187 SetNoDelay(s, true);
188 }
189 }
190
191 bool Compress(TData& data, const TString& compressionScheme) {
192 if (compressionScheme == "gzip" && data.size() > 23) { // there is no string less than 24 bytes long that might be compressed with gzip

Callers 2

OnConnectMethod · 0.70
OnAcceptMethod · 0.70

Calls 2

TRequestSettingsClass · 0.85
SetNoDelayFunction · 0.85

Tested by

no test coverage detected