Skip to content

Commit b9e0f21

Browse files
fixed SSE connections, bumped to v1.9.2
1 parent 0d9c25b commit b9e0f21

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ You can download the binary for your platform from [Releases](https://github.com
101101
Example:
102102

103103
```shell
104-
HPTS_RELEASE=v1.9.1; wget -v https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases/download/$HPTS_RELEASE/gohpts-$HPTS_RELEASE-linux-amd64.tar.gz -O gohpts && tar xvzf gohpts && mv -f gohpts-$HPTS_RELEASE-linux-amd64 gohpts && ./gohpts -h
104+
HPTS_RELEASE=v1.9.2; wget -v https://github.com/shadowy-pycoder/go-http-proxy-to-socks/releases/download/$HPTS_RELEASE/gohpts-$HPTS_RELEASE-linux-amd64.tar.gz -O gohpts && tar xvzf gohpts && mv -f gohpts-$HPTS_RELEASE-linux-amd64 gohpts && ./gohpts -h
105105
```
106106

107107
Alternatively, you can install it using `go install` command (requires Go [1.24](https://go.dev/doc/install) or later):

gohpts.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ readLoop:
11461146
}
11471147
if er != nil {
11481148
if ne, ok := er.(net.Error); ok && ne.Timeout() {
1149-
break readLoop
1149+
continue // support long-lived connections (SSE, WebSockets, etc)
11501150
}
11511151
if errors.Is(er, net.ErrClosed) {
11521152
break readLoop

version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
package gohpts
22

3-
const Version string = "gohpts v1.9.1"
3+
const Version string = "gohpts v1.9.2"

0 commit comments

Comments
 (0)