[Libwebsockets] 回复: 答复: A question about libwebsockets dns resolve

huangkaicheng huangkaicheng at huawei.com
Tue May 19 05:09:12 CEST 2020

    Now libwebsockets can work well in linux and windows. But in OSX(mac ), it still not take effect. And I also set default timeout (secs): 5. It didn’t not not try next.

发件人: Andy Green [mailto:andy at warmcat.com] 
发送时间: 2020年5月11日 21:17
收件人: huangkaicheng <huangkaicheng at huawei.com>; libwebsockets <libwebsockets at ml.libwebsockets.org>
抄送: Chenyake <chenyake at huawei.com>
主题: Re: 答复: 回复: 回复: [Libwebsockets] 答复: A question about libwebsockets dns resolve

On 5/11/20 12:42 PM, huangkaicheng wrote:
> Hi,
>      I have update the latest code of master, it seem that it does not takes effect. I set default timeout (secs): 5.

The patch is fine... the problem is windows doesn't follow the POSIX rule that it should set POLLOUT on the connection when the connect() has completed.

I pushed another patch on master aimed at that.  But it seems windows libc doesn't rotate the DNS results each time like linux does, it's harder to test it because the ordering of the results seems fixed until it fetches it again from the DNS server.


More information about the Libwebsockets mailing list