1.stunnel可以作为https client端发出连接。
2.stunnel亦可以作为https server端接收连接。
3.stunnel transfer函数中有个do{}while(...)循环中的四个socket传输数据:
| read_from_local SSL_write |
local | stunnel | HTTPS Server
| write_to_local SSL_read |
只要有数据就读然后就写,并不会等接收到所有数据后再写。
4.stunnel依赖第三方加密库OpenSSL, SSLeakey等