On Fri, 20 Nov 2020, 7:51 pm Afriyie Abraham Kwabena, < afriyie.abra...@gmail.com> wrote:
> > Hi, > > My basic understanding of HTTP protocol is that an HTTP client sent > request, get response from the HTTP server and then the connection is > closed. > > My question is how can an HTTP client detect if the underling transport > connection break. For example if the HTTP server shutdown, is there a way > to detect that at the client so that the client can start a persistent > request. > > If possible, how can I do that in golang HTTP client? > Are you thinking about implementing a connection pool for your long lived process? > BR > Abraham > > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/4937b529-c1aa-4425-8b81-01214c1fc1f7n%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/4937b529-c1aa-4425-8b81-01214c1fc1f7n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CANODV3nbAtijdg8WybbzpDFcX26-zY-kWNQewV72Qi8VDGq9kw%40mail.gmail.com.