Open kim2lux opened 2 years ago
Is this still an issue? I haven't tried KTLS myself but very interested in doing so. Also, do you need openssl to use KTLS? You could setup a BSD socket manually then forward that to Asio right? Then you don't need openssl correct?
Hello,
Trying to setup and test the TLS offload through Kernel TLS using:
Everything is working fine after setting the native asio socket with KTLS (SSL_OP_ENABLE_KTLS) and the websocket is able to retrieve the records properly while offloading the TLS decryption / encryption on kernel side.
Only issue I have is that the epoll_wait is always triggering and I block in the ktls_read_record method (openssl impl) ktls_read_record
It looks like epoll believes an event was available but actually no event is ready to trigger. So in case there are no activity on the socket, my io context run will stall waiting for a message from the server. I don't think this is a specific problem with boost asio but maybe faced the same problem using KTLS and using boost asio ?
Any help / hint would be greatly appreciated,
Thank you for your help, Best,