You can not suppose the data was received when the connection is corrupt.
I think the destination should re-request the data it wants.
HTTP implemented a similar mechanism.
https://tools.ietf.org/html/rfc7233#section-3.1

Sorry for my poor english.

在 2018年9月21日星期五 UTC+8上午12:54:42,John Floren写道:
>
> On Thursday, September 20, 2018 at 5:50:51 AM UTC-6, Dean Wang wrote:
>>
>>
>>>  new connection, new underlying io.Writer,  why keep the previous 
>> pending data? 
>>  
>>
>
> It's a new connection to the same destination. I want the bytes I wrote to 
> reach that destination, even if we have to negotiate a new connection 
> halfway through. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to