+
+ /* if needed, force-service wsis that may not have read all input */
+ while (!lws_service_adjust_timeout(context, 1, 0)) {
+ lwsl_notice("extpoll doing forced service!\n");
+ lws_service_tsi(context, -1, 0);
+ }
+ } else {
+ /* no revents, but before polling again, make lws check for any timeouts */
+ if (ms - ms_1sec > 1000) {
+ lwsl_notice("1 per sec\n");
+ lws_service_fd(context, NULL);
+ ms_1sec = ms;
+ }
+ }