TechGeorgii / go-keep-alive-http

HTTP keep-alive in Go http.Get and http.Post example

Home Page:https://techgeorgii.com/go-golang-fix-network-issues-connection-reset-by-peer-http-server-closed-idle-connection-eof/

Repository from Github https://github.comTechGeorgii/go-keep-alive-httpRepository from Github https://github.comTechGeorgii/go-keep-alive-http

go-keep-alive-http

This is an example on how HTTP keep-alive work. You can see http.Post and http.Post behaving differently due to Post not having idempotency property but Get having it.

Example includes Golang server and client to reproduce the following network errors:

  • EOF
  • http: server closed idle connection
  • read tcp: read: connection reset by peer

To fix these errors go to article: https://techgeorgii.com/go-golang-fix-network-issues-connection-reset-by-peer-http-server-closed-idle-connection-eof/

About

HTTP keep-alive in Go http.Get and http.Post example

https://techgeorgii.com/go-golang-fix-network-issues-connection-reset-by-peer-http-server-closed-idle-connection-eof/


Languages

Language:Go 100.0%