MCPcopy Create free account
hub / github.com/aria2/aria2 / checkSocketRecvBuffer

Method checkSocketRecvBuffer

src/HttpServerCommand.cc:108–117  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void HttpServerCommand::checkSocketRecvBuffer()
109{
110 if (httpServer_->getSocketRecvBuffer()->bufferEmpty() &&
111 socket_->getRecvBufferedLength() == 0) {
112 return;
113 }
114
115 setStatus(Command::STATUS_ONESHOT_REALTIME);
116 e_->setNoWait(true);
117}
118
119#ifdef ENABLE_WEBSOCKET
120

Callers

nothing calls this directly

Calls 3

bufferEmptyMethod · 0.80
setNoWaitMethod · 0.80
getRecvBufferedLengthMethod · 0.45

Tested by

no test coverage detected