mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +00:00
Add endpoint to list tunnels
PUBLISHED_FROM=f45d9832a884374f6f9ea3f2e0a8c9465f214896
This commit is contained in:
1 parent
fc635a9340
commit
9dba6c806b
1 file changed
+2
-1
+2
-1
@@ -4578,8 +4578,9 @@ static void spawn_handling_thread(struct mg_connection *nc) {
|
|||||||
* dummy event manager.
|
* dummy event manager.
|
||||||
* c[0] stays in this thread, c[1] goes to another thread.
|
* c[0] stays in this thread, c[1] goes to another thread.
|
||||||
*/
|
*/
|
||||||
|
mg_mgr_init(&dummy, NULL);
|
||||||
mg_socketpair(sp, SOCK_STREAM);
|
mg_socketpair(sp, SOCK_STREAM);
|
||||||
memset(&dummy, 0, sizeof(dummy));
|
|
||||||
c[0] = mg_add_sock(&dummy, sp[0], forwarder_ev_handler);
|
c[0] = mg_add_sock(&dummy, sp[0], forwarder_ev_handler);
|
||||||
c[1] = mg_add_sock(&dummy, sp[1], nc->listener->priv_1.f);
|
c[1] = mg_add_sock(&dummy, sp[1], nc->listener->priv_1.f);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user