xiaotushaoxia
xiaotushaoxia
Describe the Question windows下:Spin即使没有任何请求正在处理,server依然会等ExitWaitTimeout秒后退出 Reproducible Code ```go h := server.Default(server.WithHostPorts(":5653")) h.Spin() ``` 开启后直接ctrl+c,程序依然会等待。 看了下问题应该出在 github.com\cloudwego\hertz\pkg\network\standard\transport.go 112行。因为ubuntu下使用netpoll.transport,和standard.standard的Shutdown实现不一样,所以只在windows下存在问题。 参考net.http的shutdown实现,net.http.Server会记录所有客户端,Shutdown后有在ctx.Done前尝试去关闭全部客户端,如果客户端已经退出了,Shutdown就直接返回。hertz.Server似乎没有记下全部客户端,所以Shutdown硬等到ctx.Done, 这个实现应该是有瑕疵的 Hertz version: v0.6.6
```go broker := func(to, from *net.TCPConn) { written, err := io.Copy(to, from) if err != nil { // If the socket we are writing to is shutdown with // SHUT_WR,...
```go read, err := proxyConn.Read(readBuf) // .... for i := 0; i != read; { written, err := proxy.listener.WriteToUDP(readBuf[i:read], clientAddr) if err != nil { return } i += written...
when I want to bind query to `any`, I got a unknown type error. but it works in BindUri(/:name/:v for example) and BindJSON. it should be a bug. I fix...
# Description fix: wails dev will fail if GOOS and GOARCH do not match the current system.(can not build suitable wailsbingings) When I want to use this, I got a...
创建任务报错{'error': 'captcha_invalid', 'error_code': 9, 'error_description': '验证码无效', 'error_details': [], 'error_url': ''},但其它接口可以用。 话说这些api是哪里来的,迅雷有公开文档嘛