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

Setting -t flag to 0 leaves timeout as default value of 120 seconds instead of disabling the timeout #804

Open
elliotwutingfeng opened this issue Mar 26, 2022 · 1 comment · May be fixed by #826
Labels

Comments

@elliotwutingfeng
Copy link

Setting the timeout -t flag to 0, like -t 0 leaves timeout as default value of 120 seconds, instead disabling the timeout.

Environment Versions

  1. OS Type: Manjaro Linux GNOME
  2. Node version: v17.7.1
  3. http-server version: v14.1.0

Steps to reproduce

Run http-server -p 8000 -t0

Expected result

Connection Timeout: disabled in the output string

Actual result

Connection Timeout: 120 seconds in the output string

Other information

http-server -p 8000 -t1 gives correct output of Connection Timeout: 1 seconds

@elliotwutingfeng elliotwutingfeng linked a pull request Aug 8, 2022 that will close this issue
8 tasks
@github-actions
Copy link

This issue has been inactive for 180 days

@github-actions github-actions bot added the stale label Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant