Closed sc0Vu closed 3 years ago
Fix #67
TODO: ~- [ ] SetKeepAliveCount/SetKeepAliveIdle https://github.com/ucirello/tcpkeepalive/blob/master/keepalive_darwin.go~
~- [ ] Check whether there is Keep-Alive inhttp header https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive~
~- [ ] Keep Alive for other protocols?~
After trace ghost backend (nodejs/express) and proxy connection, it turns out the first byte was missing in next request, eg: ET /api/v3/admin/config, it should be GET /api/v3/admin/config. So the nodejs socket rejected request with:
ET /api/v3/admin/config
GET /api/v3/admin/config
HPE_INVALID_METHOD
[Error: Parse Error] bytesParsed: 0, code: 'HPE_INVALID_METHOD', rawPacket:
Fix #67
TODO: ~- [ ] SetKeepAliveCount/SetKeepAliveIdle https://github.com/ucirello/tcpkeepalive/blob/master/keepalive_darwin.go~
~- [ ] Check whether there is Keep-Alive inhttp header https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Keep-Alive~
~- [ ] Keep Alive for other protocols?~
After trace ghost backend (nodejs/express) and proxy connection, it turns out the first byte was missing in next request, eg:
ET /api/v3/admin/config
, it should beGET /api/v3/admin/config
. So the nodejs socket rejected request with:HPE_INVALID_METHOD