problem using recv with responses over 2k using https

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

  • Hello, 

    The modem has a known TLS limitation of 2kB secure socket buffer size, documented in the modem FW release notes:

    *** 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.

    Kind regards,
    Øyvind

Related