net: clean up port parsing #15326
Closed
net: clean up port parsing #15326
Labels
Comments
Yes, I will send a followup CL for better consistency. FWIW, unfortunately the following snippet works w/ CGO_ENABLED=1 older versions or GODEBUG=netdns=cgo newer versions.
Probably we should make consistent representation on transport service names and literal port numbers in ABNF for Dial/Listen APIs before Go 1. |
Okay, if +n worked before, we don't need to do anything here. Still weird, but yay compatibility. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
https://go-review.googlesource.com/#/c/19720/ updated the parsing of port numbers, but now it accepts
stuff starting with a `+' sign, like:
Nobody ever told me why that should be allowed, but the CL was submitted anyway. Or I missed it, but I can't find it.
Investigate and ideally fix.
/cc @mikioh @msiebuhr
The text was updated successfully, but these errors were encountered: