<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Ability to set custom timeout for getaddrinfo?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60224/ability-to-set-custom-timeout-for-getaddrinfo</link><description>Hello, 
 When operating the Thingy91 in poor network connectivity environments, the call to getaddrinfo will sometimes block and eventually timeout returning a error code 60 (ETIMEDOUT). 
 Is there a way to set a specific/custom timeout for getaddrinfo</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jun 2020 07:46:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60224/ability-to-set-custom-timeout-for-getaddrinfo" /><item><title>RE: Ability to set custom timeout for getaddrinfo?</title><link>https://devzone.nordicsemi.com/thread/253684?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 07:46:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:747c12bd-d078-42a4-92c3-248058128db8</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, just to be more specific for other viewers:&lt;/p&gt;
&lt;p&gt;The modem has four re-transmissions for the DNS query. The timeout for the first DNS request is 1 second and the timeout for the second, third and fourth DNS request is 3 seconds.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;All together this means a 10 second timeout in the RPC interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ability to set custom timeout for getaddrinfo?</title><link>https://devzone.nordicsemi.com/thread/250610?ContentTypeID=1</link><pubDate>Tue, 19 May 2020 08:33:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e752d2a-b49a-452f-8069-7428aa8804f4</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! Yes, they say the specific time is 1 second.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ability to set custom timeout for getaddrinfo?</title><link>https://devzone.nordicsemi.com/thread/250532?ContentTypeID=1</link><pubDate>Mon, 18 May 2020 18:18:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa624bb8-996c-4405-8044-254171e4c859</guid><dc:creator>Cody</dc:creator><description>&lt;p&gt;Hey Heidi,&lt;/p&gt;
&lt;p&gt;Any update on how long the timeout is for getaddrinfo()?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;Cody&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ability to set custom timeout for getaddrinfo?</title><link>https://devzone.nordicsemi.com/thread/246198?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2020 10:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eb04057-5160-4d57-abc7-8ab44d54f587</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi again!&lt;/p&gt;
&lt;p&gt;getaddrinfo() in BSDLib returns ETIMEDOUT, if the DNS server can&amp;#39;t be reached or isn&amp;#39;t answering. I&amp;#39;m still waiting on information regarding the specific time it waits before returning the error so I will get back to you on that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;A workaround could be to not look up the address but have ut saved statically in the application.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Ability to set custom timeout for getaddrinfo?</title><link>https://devzone.nordicsemi.com/thread/245234?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 12:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59d71ea8-966d-4422-8566-dcec38bc064d</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi, you are correct. There&amp;#39;s no way to pass a timeout to getaddrinfo().&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t find any information about the timeout however, so I&amp;#39;ve forwarded your inquiry and will get back to you when I have an answer.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>