Skip to content

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

Open
@elliotwutingfeng

Description

@elliotwutingfeng

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions