MCPcopy Create free account
hub / github.com/acl-dev/acl / thread_on_accept

Method thread_on_accept

lib_acl_cpp/samples/ssl/ssl_server3/master_service.cpp:126–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

124}
125
126bool master_service::thread_on_accept(acl::socket_stream* conn)
127{
128 //logger("connect from %s, fd: %d, timeout: %d", conn->get_peer(true),
129 // conn->sock_handle(), conn->get_rw_timeout());
130
131 acl::string* buf = new acl::string(128);
132 conn->set_ctx(buf);
133 conn->set_rw_timeout(var_cfg_io_timeout);
134
135 return true;
136}
137
138bool master_service::thread_on_timeout(acl::socket_stream* conn)
139{

Callers

nothing calls this directly

Calls 2

set_rw_timeoutMethod · 0.80
set_ctxMethod · 0.45

Tested by

no test coverage detected