Copy flags for accepted connection

PUBLISHED_FROM=4787d59fdc9f4da525ddfae46e5203d06a596ef4
This commit is contained in:
Alexander Alashkin 2016-09-12 11:36:47 +01:00 committed by Cesanta Bot
parent 0dc0c5a0e0
commit ffed9c4d8c

View File

@ -3519,6 +3519,7 @@ static void spawn_handling_thread(struct mg_connection *nc) {
c[1]->proto_handler = nc->proto_handler; c[1]->proto_handler = nc->proto_handler;
c[1]->user_data = nc->user_data; c[1]->user_data = nc->user_data;
c[1]->sa = nc->sa; c[1]->sa = nc->sa;
c[1]->flags = nc->flags;
mg_start_thread(per_connection_thread_function, c[1]); mg_start_thread(per_connection_thread_function, c[1]);
} }