[bug #54653] altcp_tls_mbedtls rx depends on TCP_WND

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[bug #54653] altcp_tls_mbedtls rx depends on TCP_WND

Simon Goldschmidt
URL:
  <https://savannah.nongnu.org/bugs/?54653>

                 Summary: altcp_tls_mbedtls rx depends on TCP_WND
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: goldsimon
            Submitted on: Wed 12 Sep 2018 08:42:30 PM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: goldsimon
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None
            lwIP version: git head

    _______________________________________________________

Details:

As window updates are sent application-controlled when tcp_recved() is called,
the current altcp_tls implementation for mbedtls has a problem that it needs
TCP_WND to be > MBEDTLS_SSL_MAX_CONTENT_LEN or the connection may stall
because the remote side cannot send a whole decryption fragment.

Application-controlled window updates are still better, but maybe altcp_tls
connections need to override the announced window in this case (as the buffer
space is allocated by mbedtls anyway, not via lwIP pbufs).




    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/bugs/?54653>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel