<div dir="ltr"><div><div><div><div><div><div><div><div>Hello,<br></div>I'm using noPoll lib in my Qt GUI application.<br></div>I am using it in non-blocking mode, within my main thread, using timer-events and a state machine.<br></div><div>The scenario happens on both my Ubuntu laptop and my ARM embedded Linux.<br></div><div><br></div>I just noticed that when my server was down (I'm not sure what that means, in networking concepts) - nopoll_conn_new() blocked for its' default timeout (20 seconds).<br></div>So<b><br>Question 1: is nopoll_conn_new() blocking?</b><br><br>I found nopoll_conn_connect_timeout(), but it's not in the API.<br></div>So I changed the timeout:<br><div style="margin-left:40px"><span style="font-family:monospace,monospace">m_ctx->conn_connect_std_timeout = 2 * 1000 * 1000; // 2 seconds</span><br></div>and it worked.<br><b>Question 2: is nopoll_conn_connect_timeout() in the API?</b><br></div><br></div>Anyway - I can't block my main thread, so what do you recommend?<br></div>Thanks<br></div>