aboutsummaryrefslogtreecommitdiff
path: root/include/salticidae/conn.h
diff options
context:
space:
mode:
authorDeterminant <ted.sybil@gmail.com>2019-06-28 01:22:43 -0400
committerDeterminant <ted.sybil@gmail.com>2019-06-28 01:22:43 -0400
commit1d49e46bfaeb7a6bbd38960c0bfd08643aac7c12 (patch)
treecdb820d432950254e1fc6cbefcce00b307cd907b /include/salticidae/conn.h
parentb886c6e00ab986f3f22d6e77f77fa8f559532e38 (diff)
...
Diffstat (limited to 'include/salticidae/conn.h')
-rw-r--r--include/salticidae/conn.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/salticidae/conn.h b/include/salticidae/conn.h
index e39d31d..b693b4f 100644
--- a/include/salticidae/conn.h
+++ b/include/salticidae/conn.h
@@ -267,8 +267,10 @@ class ConnPool {
conn->send_data_func = Conn::_send_data;
conn->recv_data_func = Conn::_recv_data;
enable_send_buffer(conn, client_fd);
- cpool->on_setup(conn);
- cpool->update_conn(conn, true);
+ cpool->disp_tcall->async_call([cpool, conn](ThreadCall::Handle &) {
+ cpool->on_setup(conn);
+ cpool->update_conn(conn, true);
+ });
}
assert(conn->fd != -1);
assert(conn->worker == this);