Allenxuxu / gev

🚀Gev is a lightweight, fast non-blocking TCP network library / websocket server based on Reactor mode. Support custom protocols to quickly and easily build high-performance servers.
MIT License
1.73k stars 194 forks source link

Feature request: Add support for TLS #100

Open xBlaz3kx opened 3 years ago

xBlaz3kx commented 3 years ago

It would be nice to have the TLS support for the TCP server to securely communicate between server and a client.

1514louluo commented 2 years ago

https://github.com/lesismal/nbio, 这哥们儿的思路 是将net.conn的fd dup一个新的fd,然后加到事件循环中,这样就可以复用tls的read和write了。