<?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>problem using recv with responses over 2k using https</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80942/problem-using-recv-with-responses-over-2k-using-https</link><description>I have an https connection (sending json) that works fine when the response is less 2k. But for responses (from the server) that are over 2048 bytes, recv returns 0 bytes. :( 
 nrf9160 
 1.5.1 SDK 
 https/TLS</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 22 Oct 2021 17:07:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80942/problem-using-recv-with-responses-over-2k-using-https" /><item><title>RE: problem using recv with responses over 2k using https</title><link>https://devzone.nordicsemi.com/thread/335542?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 17:07:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e28988f4-30b1-426c-8545-f48a2866d2ba</guid><dc:creator>Ian Johnson</dc:creator><description>&lt;p&gt;Thank you for the quick response!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: problem using recv with responses over 2k using https</title><link>https://devzone.nordicsemi.com/thread/335406?ContentTypeID=1</link><pubDate>Fri, 22 Oct 2021 07:02:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9dadb9d-ff45-46de-8e54-aee9466435c0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The modem has a known TLS limitation of 2kB secure socket buffer size, documented in the modem FW release notes:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Limitations
***************
- TLS/DTLS
    - Up to three simultaneous TLS/DTLS connections are possible. It is recommended to free the
      modem resources by closing unused network sockets.
    - Maximum server certificate chain size has a limit of 4kB.
    - Server certificate expiry time is not verified.
    - pkcs#8 is not supported.
    - Absolute maximum number of supported credentials is 32. The actual amount depends on size of
      credentials as memory area reserved for credentials may be a limiting factor as well.
    - DTLS supports PSK authentication only.
    - 2kB secure socket buffer size.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>