resty icon indicating copy to clipboard operation
resty copied to clipboard

The long connection function is currently not supported.

Open mmzhi opened this issue 4 years ago • 2 comments

https://github.com/go-resty/resty/blob/61f4307870842f056ac439c0d627a9611846de02/client.go#L899

Currently, long connections are used to continuously obtain data, and HTTP will not be disconnected during this process. Since all data will be read here, it will cause the link to be blocked here, and we hope that developers will support the long connection function .

mmzhi avatar Jan 16 '21 15:01 mmzhi

@mmzhi Can you please explain what do you mean by the long connection function?

jeevatkm avatar Mar 21 '21 07:03 jeevatkm

Sorry my bad English. It user google translate. The client connects to the server through the HTTP protocol. After a successful connection, neither the server nor the client will disconnect, and will continue to transmit data, similar to the MQTT protocol.

mmzhi avatar Mar 22 '21 07:03 mmzhi

@mmzhi I'm not sure this long connection is possible with HTTP protocol. Typically, these long connections use direct TCP/UDP protocol to communicate.

jeevatkm avatar Oct 01 '23 04:10 jeevatkm