Re: [Nbd] Maximum error message length?

2016-04-06 Thread Alex Bligh
On 6 Apr 2016, at 17:59, Alex Bligh wrote: >> A server that sticks a super-long UTF-8 string in an error reply could >> cause problems for clients. Should we have an upper bound on the length >> permissible in NBD_REP_ERR_*, such as 4096, and permit clients to >> disconnect if the server sends

Re: [Nbd] Maximum error message length?

2016-04-06 Thread Alex Bligh
Eric, On 6 Apr 2016, at 17:46, Eric Blake wrote: > A server that sticks a super-long UTF-8 string in an error reply could > cause problems for clients. Should we have an upper bound on the length > permissible in NBD_REP_ERR_*, such as 4096, and permit clients to > disconnect if the server send

[Nbd] Maximum error message length?

2016-04-06 Thread Eric Blake
A server that sticks a super-long UTF-8 string in an error reply could cause problems for clients. Should we have an upper bound on the length permissible in NBD_REP_ERR_*, such as 4096, and permit clients to disconnect if the server sends a length larger than that, so that clients can usefully re