Skip to content
Snippets Groups Projects
  • =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?='s avatar
    4c0ba027
    fix #309. Receive large messages over WSS · 4c0ba027
    Read the full incoming TLS/SSL record at once in libwebsocket_service_fd().
    
    SSL_read() is called until no more pending data for the current record is buffered in SSL.
    SSL_read() is never requested more than the pending data size for the current record
    to ensure that the fd is not read again for new data, which would be copied in the SSL buffer otherwise.
    4c0ba027
    History
    fix #309. Receive large messages over WSS
    Read the full incoming TLS/SSL record at once in libwebsocket_service_fd().
    
    SSL_read() is called until no more pending data for the current record is buffered in SSL.
    SSL_read() is never requested more than the pending data size for the current record
    to ensure that the fd is not read again for new data, which would be copied in the SSL buffer otherwise.