valyala / fasthttp

Fast HTTP package for Go. Tuned for high performance. Zero memory allocations in hot paths. Up to 10x faster than net/http
MIT License
21.88k stars 1.76k forks source link

EOF error #1353

Closed Yelijah closed 2 years ago

Yelijah commented 2 years ago

I am a new in fasthttp. I meet EOF error when I use fasthttp. what's that mean and how to fix it? By the way, My server support keep-alived

erikdubbelboer commented 2 years ago

I need a lot more information or some way to reproduce what you are seeing.

Yelijah commented 2 years ago

I need a lot more information or some way to reproduce what you are seeing.

i meet this error when use one gateway tool (https://github.com/fagongzi/manba). but this tool seems to be deprecated whose author don't answer issue.

The dirty code seem to be in pkg/util/fasthttp_client.go:208 which use pool to store conn.

I'm soory, i know it's not suitable to submit issue in this repo. You can reject to answer me

erikdubbelboer commented 2 years ago

https://github.com/fagongzi/manba/blob/master/pkg/util/fasthttp_client.go is an almost full (old) copy of https://github.com/valyala/fasthttp/blob/master/client.go. I'm afraid I can't support that since it's not actually fasthttp.