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

can headle sevaral requests meantime? #1

Open
freemember007 opened this issue Mar 17, 2018 · 4 comments
Open

can headle sevaral requests meantime? #1

freemember007 opened this issue Mar 17, 2018 · 4 comments

Comments

@freemember007
Copy link

look like it can only headle one request once.

@noxtras
Copy link
Owner

noxtras commented Mar 17, 2018

Simultaneous connections are not possible with netcat.
It can only serve one user at a time.
Just curious. What did you intend to use it for?

@freemember007
Copy link
Author

@noxtras thank you reply so quickly! I want to let my web user can execute bash script through remote HTTP request to do some hard word such as batch curl and zip imgs and then download them. and I don't want to write a nodejs server or others . Bash is simple and powerful and cool:)

@freemember007
Copy link
Author

@noxtras realy impossible? maybe run muiti background poccess can do it?

@noxtras
Copy link
Owner

noxtras commented Mar 17, 2018

from what I read about netcat, it's not a viable option.
(I think) If you run multiple background processes, they will be opened on different ports..
You could see if any of the replies here are good for you (i've not tested them):
https://unix.stackexchange.com/questions/32182/simple-command-line-http-server

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