libreoffice-online/net
Ashod Nakashian 7f41627d52 nb: improved poll handler
We now always read new data, because
SSL might need to process internal buffers,
and call the app message handler as long
as it keeps consuming data.

Finally, we write when we have data
to flush, even if we didn't get POLLOUT
event, because SSL might need to do
handshake, which is handled by the write
handler.

Change-Id: I909333c3a0492b0830044d51ae478ac5981b1d90
Reviewed-on: https://gerrit.libreoffice.org/34448
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
2017-03-10 10:47:38 +01:00
..
clientnb.cpp nb: websocket echo test 2017-03-10 10:47:38 +01:00
loolnb.cpp nb: server socket should accept only on POLLIN 2017-03-10 10:47:38 +01:00
socket.hpp nb: improved poll handler 2017-03-10 10:47:38 +01:00
ssl.cpp nb: allow moving write buffer 2017-03-10 10:47:38 +01:00
ssl.hpp nb: initialize the SSL Context 2017-03-10 10:47:37 +01:00