http-server icon indicating copy to clipboard operation
http-server copied to clipboard

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

Open elliotwutingfeng opened this issue 3 years ago • 1 comments

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 avatar Mar 26 '22 22:03 elliotwutingfeng

This issue has been inactive for 180 days

github-actions[bot] avatar Sep 23 '22 12:09 github-actions[bot]