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

Need of a sleep after launching the docker image and before connecting to the proxy #32

Open
maaaaz opened this issue Nov 19, 2024 · 1 comment

Comments

@maaaaz
Copy link

maaaaz commented Nov 19, 2024

Hello there,

Thank you for your useful project !

I open this issue to inform that, often, the user should wait a bit after the setup and before the connection.

To be clear, for instance, if I do this in a Github workflow, it fails with a Connection reset by peer error:

$ sudo docker run --restart=always -itd --name warpsocks -p 9091:9091 "monius/docker-warp-socks:v3"
$ <program connecting to localhost:9091>

I suspect that after the launching of the docker image, some seconds are needed for the warp tunnel to be established.

So, I am forced to put a sleep 10 before connecting to localhost:9091, to be reasonably sure that the warp tunnel is established:

$ sudo docker run --restart=always -itd --name warpsocks -p 9091:9091 "monius/docker-warp-socks:v3"
$ sleep 10
$ <program connecting to localhost:9091>

Could you add this sleep X seconds in your docker image ?

That way, we (users), would not need to make it ourselves.

Cheers!

@Mon-ius
Copy link
Owner

Mon-ius commented Nov 19, 2024

Cool, if u could submit the PR for this issue, thx 🤗

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

2 participants