int mg_mgr_poll(struct mg_mgr *m, int timeout_ms) { ... tv.tv_sec = timeout_ms / 1000; tv.tv_usec = (timeout_ms % 1000) * 1000; num_ev = select((int) max_fd + 1, &read_set, &write_set, &err_set, &tv); ......
mg_mgr_poll(&mgr, ?); My platform is Esp32 What is purpose of second paramater. I notice if have 1 tcp connection than mg_mgr_poll(&mgr, 1); is good enough. but I have 3 tcp connections it slows down receiving and sending tcp messages. but i have to do mg_mgr_poll(&mgr, ...