Skip to content

Fix units (seconds -> milliseconds) in a description of Timeout field in Options struct#1314

Merged
Mzack9999 merged 1 commit intoprojectdiscovery:devfrom
HappyStoic:dev
Dec 23, 2024
Merged

Fix units (seconds -> milliseconds) in a description of Timeout field in Options struct#1314
Mzack9999 merged 1 commit intoprojectdiscovery:devfrom
HappyStoic:dev

Conversation

@HappyStoic
Copy link
Copy Markdown
Contributor

There was a typo saying Timeout field is in seconds. It's actually milliseconds. This confused me a lot.

References that the value is actually interpreted as milliseconds:

flagSet.IntVar(&options.Timeout, "timeout", DefaultPortTimeoutSynScan, "millisecond to wait before timing out"),
Timeout:       time.Duration(options.Timeout) * time.Millisecond,

@HappyStoic
Copy link
Copy Markdown
Contributor Author

Also, if I am not mistaken by looking at the code and playing with it, the Timeout field is used only in CONNECT scans, am I correct? Then the comment is also quite misleading

@ehsandeep ehsandeep requested a review from Mzack9999 December 22, 2024 12:34
@GeorginaReeder
Copy link
Copy Markdown

Thanks for bringing this up @HappyStoic , we'll take a look into it!

@Mzack9999
Copy link
Copy Markdown
Member

@HappyStoic Nice catch!

@Mzack9999 Mzack9999 merged commit 9116ecd into projectdiscovery:dev Dec 23, 2024
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

Successfully merging this pull request may close these issues.

3 participants