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.72k stars 193 forks source link

Feature request: Add support for TLS #100

Open xBlaz3kx opened 2 years ago

xBlaz3kx commented 2 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了。