Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on socket file not existing in advance #12

Open
fangism opened this issue Feb 3, 2023 · 0 comments
Open

Error on socket file not existing in advance #12

fangism opened this issue Feb 3, 2023 · 0 comments

Comments

@fangism
Copy link

fangism commented Feb 3, 2023

I tried the following:

$ ./gocat unix-to-tcp --src /tmp/foo.sock --dst buildeventservice.googleapis.com:443
couldn't create relay from unix socket to TCP
 --- at /usr/local/home/fangism/gocat/cmd/unix_to_tcp.go:60 (NewUnixToTCPCmd.func1) ---
Caused by: could not stat /tmp/sponge.sock
 --- at /usr/local/home/fangism/gocat/internal/relay/unix_socket_tcp.go:59 (NewUnixSocketTCP) ---
Caused by: stat /tmp/foo.sock: no such file or directory

/tmp/foo.sock did not exist ahead of running gocat.
Should gocat create that socket file when opening it? Other proxy-like tools I've used didn't require the socket file to exist in advance.
Or am I simply using it incorrectly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant