[erlang-questions] gen_udp:send blocks?

Dmitry Kolesnikov dmkolesnikov@REDACTED
Fri Sep 7 15:13:08 CEST 2018


> On 7 Sep 2018, at 16.00, Roger Lipscombe <roger@REDACTED> wrote:
> 
> Oh. Here's a thought: we use a hostname as the destination in
> gen_udp:send. Could that be causing blocking?

Usually, this causes DNS resolution, which takes some time. If you have short DNS TTL or disable cache it might cause visible delay. I think you need to check config of you DNS server and resolver as well.

Best Regards,
Dmitry

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180907/bae25335/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Message signed with OpenPGP
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180907/bae25335/attachment.bin>


More information about the erlang-questions mailing list