net: (*ListenConfig).Listen Context behavior is undocumented #50861
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?go1.17.6
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?N/A
What did you do?
View the documentation for the
(*net.ListenConfig).Listen
method.What did you expect to see?
The method has this signature:
I expected to see a description of what happens when the
ctx
parameter is done, to help get some insight into #46520.Is
ctx
used at all afterListen
returns? It a typical API it would not be, but this appears to be retrofitting aContext
into the existingnet.Listener
interface in some fashion, so I don't really know. (I tried reading the source code, but thectx
parameter is passed through an awful lot of helper-functions and network-abstraction interfaces.)What did you see instead?
No mention whatsoever of the
ctx
parameter or its semantics:This API was added in CL 72810 (Go 1.11) for #9661.
(CC @ianlancetaylor @bradfitz @AudriusButkevicius)
The text was updated successfully, but these errors were encountered: