FAQ
Hello all

I have the following net/http server:

https://gist.github.com/4640746

It receives a request and does some work that takes a long time (forever in
this example code), which is longer than the write timeout. The request
produces an indeterminate amount of data, so I don't set a Content-Length,
if that matters.

My request handler gets a timeout error from the Write on the
ResponseWriter and returns, but the client is never disconnected. wget,
curl, etc. just sit there and stop receiving more data.

I've been testing with:

wget -O /dev/null http://localhost:12034/foo

Am I missing something here?

go version devel +f50a112bfe3b Fri Jan 25 10:06:18 2013 +1100 linux/amd64

Regards

Albert

--

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedJan 26, '13 at 7:23a
activeJan 26, '13 at 7:23a
posts1
users1
websitegolang.org

1 user in discussion

Albert Strasheim: 1 post

People

Translate

site design / logo © 2022 Grokbase