Skip to content
Snippets Groups Projects
Commit 4c0ba027 authored by =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?='s avatar =?UTF-8?q?Jos=C3=A9=20Luis=20Mill=C3=A1n?= Committed by Andy Green
Browse files

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.
parent 020c53c8
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment