MCPcopy Create free account
hub / github.com/alibaba/PhotonLibOS / timeout_writer

Function timeout_writer

net/http/test/client_function_test.cpp:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50int socket_get_cb(void* self, IStream* stream) { return 0; }
51
52int timeout_writer(void *self, IStream* stream) {
53 photon::thread_usleep(5 * 1000UL * 1000UL);
54 char c = '1';
55 stream->write((void*)&c, 1);
56 return 0;
57}
58
59class SimpleHandler : public http::HTTPHandler {
60public:

Callers

nothing calls this directly

Calls 2

thread_usleepFunction · 0.50
writeMethod · 0.45

Tested by

no test coverage detected