diodechain / diode_client

Diode client written in GO that runs the Blockquick™ algorithm and a socks server to transmit data through diode ztna network.
https://diode.io/download
Other
66 stars 23 forks source link

Fix #67 #74

Closed sc0Vu closed 3 years ago

sc0Vu commented 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:

HPE_INVALID_METHOD

[Error: Parse Error]
  bytesParsed: 0,
  code: 'HPE_INVALID_METHOD',
  rawPacket: