chisel
chisel copied to clipboard
Support Unix Domain Socket forwarding
Forwarding with Unix Domain Socket instead of TCP can improve the performance in some cases (eg: mysql)
@jpillora this seems like a reasonable PR. Any chance you'd like to give it a review?
+1
@jpillora this seems like a reasonable PR. Any chance you'd like to give it a review?
Current reuse socket like /tmp/xx1.socket in RemotePort field, which make the code hard-reading, may be a refactor of the struct Remote .
Or complete-define the format of connect string:
- current:
R:127.0.0.1:xxx:unix:///tmp/xx1.sock - maybe?
R:bindURI:remoteURIboth bindURI/remoteURI can be TCP/UNIX mode:- tcpMode: xxxhost:xxxport
- unixMode: unix:///tmp/xx1.socket