chisel icon indicating copy to clipboard operation
chisel copied to clipboard

Support Unix Domain Socket forwarding

Open nguyentruongtho opened this issue 5 years ago • 3 comments

Forwarding with Unix Domain Socket instead of TCP can improve the performance in some cases (eg: mysql)

nguyentruongtho avatar Oct 26 '20 10:10 nguyentruongtho

@jpillora this seems like a reasonable PR. Any chance you'd like to give it a review?

scriptcoded avatar Oct 09 '21 18:10 scriptcoded

+1

huapox avatar Mar 29 '22 07:03 huapox

@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:remoteURI both bindURI/remoteURI can be TCP/UNIX mode:
    • tcpMode: xxxhost:xxxport
    • unixMode: unix:///tmp/xx1.socket

huapox avatar Apr 02 '22 09:04 huapox