FAQ
What does this represent? And when the timeout happens, what are the
consequences (in terms of errors raised)?

As per the documentation <http://golang.org/pkg/net/http/#Server>, I'm
confused if it means one of the following, or something unrelated:

1. The max duration that the server will wait before allowing writing of
the first byte of the response.
2. The max duration that the server will allow the ResponseWriter stream to
be idle at any point.



-Kowshik

--

Search Discussions

  • PeteT at Sep 18, 2012 at 1:19 pm
    WriteTimeout specifies the amount of time the server has to write all
    responses to a single connection. If a write starts after the deadline or
    extends beyond the deadline, then ResponseWriter.Write returns an error.
    On Tuesday, September 18, 2012 2:35:40 AM UTC-7, Kowshik Prakasam wrote:

    What does this represent? And when the timeout happens, what are the
    consequences (in terms of errors raised)?

    As per the documentation <http://golang.org/pkg/net/http/#Server>, I'm
    confused if it means one of the following, or something unrelated:

    1. The max duration that the server will wait before allowing writing of
    the first byte of the response.
    2. The max duration that the server will allow the ResponseWriter stream
    to be idle at any point.



    -Kowshik
    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedSep 18, '12 at 9:43a
activeSep 18, '12 at 1:19p
posts2
users2
websitegolang.org

2 users in discussion

PeteT: 1 post Kowshik Prakasam: 1 post

People

Translate

site design / logo © 2022 Grokbase