<?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>Socket recv returning -122 (nrf9160)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/88768/socket-recv-returning--122-nrf9160</link><description>I&amp;#39;m trying to receive an HTTP response of approximately 100KB using the nrf9160 modem. When the response size is small recv works fine. When response is large recv returns negative with 122 in errno (EMSGSIZE). This value appears to be returned directly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Jun 2022 01:33:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/88768/socket-recv-returning--122-nrf9160" /><item><title>RE: Socket recv returning -122 (nrf9160)</title><link>https://devzone.nordicsemi.com/thread/371522?ContentTypeID=1</link><pubDate>Thu, 09 Jun 2022 01:33:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a6693ad-f167-4096-b594-9a666bd75a5d</guid><dc:creator>erinh</dc:creator><description>&lt;p&gt;In all my testing it appears the only combination of TLS + large response that worked is the download client sample with the default https file provided.&amp;nbsp; The modem seems to have a 2KB response limit (when TLS is enabled - the limit without TLS appears to be much higher), and the server needs to honor a header field that requests only ~2KB ranges of the target file at once when TLS is enabled.&amp;nbsp; And if the server doesn&amp;#39;t support this header field (for e.g. a long json response and not a file) the modem is incapable of receiving the response with TLS&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>