[xml] Why does libxml2 limit port numbers to 999,999,999?

2020-10-17 Thread Richard W.M. Jones via xml
The AF_VSOCK protocol added in Linux 5.6 uses a 32 bit port number. For NBD we map this to simple URIs[1] like nbd+vsock://CID:PORT (where CID is a number that acts a bit like a hostname and PORT is a 32 bit port number). eg: nbd+vsock://1:10/ would be port 10^9 on the loopback address VM

Re: [xml] Why does libxml2 limit port numbers to 99,999,999?

2020-10-17 Thread Richard W.M. Jones via xml
On Sat, Oct 17, 2020 at 11:24:31AM +0100, Richard W.M. Jones via xml wrote: > The problem is that libxml2 arbitrarily limits port numbers to > 999,999,999. I don't see any support for this limit in RFC 3986 [2]. Actually I miscounted the number of 9's. The limit is 99,999,999

Re: [xml] Why does libxml2 limit port numbers to 999,999,999?

2020-10-17 Thread Richard W.M. Jones via xml
On Sat, Oct 17, 2020 at 06:32:18PM +0200, Nick Wellnhofer wrote: > On Oct 17, 2020, at 12:24 , Richard W.M. Jones via xml wrote: > > It seems like libxml2 chose to do this for convenience rather than > > correctness. > > Yes, this is an arbitrary limit introduced to a