[Libwebsockets] 回复: 回复: 答复: A question about libwebsockets dns resolve
o_O凌雲
550470999 at qq.com
Mon May 11 08:56:05 CEST 2020
Hi,
I have made some changes to lws to limit wait time , and I make mychanges.diff as your said. please help to review my code. thanks. I add "PENDING_TIMEOUT_DNS_RESOLVER_TRY" to limit wait time. and using "onevalid.bogus.warmcat.com" to test.see more in attachments.
huangkaicheng.
------------------ 原始邮件 ------------------
发件人: "andy"<andy at warmcat.com>;
发送时间: 2020年5月11日(星期一) 凌晨1:29
收件人: "o_O凌雲"<550470999 at qq.com>;"libwebsockets"<libwebsockets at ml.libwebsockets.org>;
抄送: "huangkaicheng"<huangkaicheng at huawei.com>;
主题: Re: 回复: [Libwebsockets] 答复: A question about libwebsockets dns resolve
On 5/10/20 5:54 PM, o_O凌雲 wrote:
> Hi,
> we want to limit wait time for each when dns resolve connect
> because 20s is too long. And I set lws_timeout. and time limit tabke
> effect. but this is something wrong that tsi fds count is 1. it is
> normall is zero when trying end. please help to check my code whether
> there is something wrong. thanks.
Sorry I don't have time to wade through 8 attachments > 700KB.
If you have made some changes to lws, send a diff or patch so we can
quickly see the changes and think about those. It's enough to just do, eg
$ git diff > mychanges.diff
and send mychanges.diff.
If you have a specific issue it's best to make a way to reproduce it
using the minimal examples, eg, using lws-minimal-http-client. Then
with a small patch + run a minimal example, I can quickly review the
changes and try the problem, and be fairly sure I am looking at the same
thing you are looking at.
-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200511/e99a5330/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mychanges.diff
Type: application/octet-stream
Size: 11957 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200511/e99a5330/attachment-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libwebsocket log1
Type: application/octet-stream
Size: 347855 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200511/e99a5330/attachment-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: websocke-log2
Type: application/octet-stream
Size: 180914 bytes
Desc: not available
URL: <https://libwebsockets.org/pipermail/libwebsockets/attachments/20200511/e99a5330/attachment-0005.obj>
More information about the Libwebsockets
mailing list