Does Golang's (*http.ResponseWriter) Write() method block until data is recieved by the client?

I had a serious issue with the Write() method not respecting very important assumptions. Please for the full story, refer to this link: https://stackoverflow.com/questions/61536747/does-golangs-http-responsewriter-write-method-block-until-data-is-recieved

As it will send the data, and close once its sent, while returning any error occurred. It can’t return before all data is sent. Though due to HTTP works you can’t know if the client actually has received everything.

Edit

By writing “send” I actually mean “handed over to the network stack of the operating system”, you usually have not much control beyond that.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.