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

Method thread_on_accept

lib_acl_cpp/samples/ssl/ssl_server2/master_service.cpp:135–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135bool master_service::thread_on_accept(acl::socket_stream* conn)
136{
137 //logger("connect from %s, fd: %d, timeout: %d", conn->get_peer(true),
138 // conn->sock_handle(), conn->get_rw_timeout());
139
140 acl::string* buf = new acl::string(128);
141 conn->set_ctx(buf);
142 conn->set_rw_timeout(var_cfg_io_timeout);
143
144 return true;
145}
146
147bool master_service::thread_on_timeout(acl::socket_stream* conn)
148{

Callers

nothing calls this directly

Calls 2

set_rw_timeoutMethod · 0.80
set_ctxMethod · 0.45

Tested by

no test coverage detected