jxhczhl / JsRpc

远程调用(rpc)浏览器方法,免去抠代码补环境
1.26k stars 313 forks source link

跑的时间长了会报错 #9

Closed sihan-bit closed 1 year ago

sihan-bit commented 1 year ago

write tcp 192.168.2.87:12080->192.168.2.87:57343: wsasend: An established connection was aborted by the software in your host machine. C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/render/json.go:56 (0x5633be) JSON.Render: panic(err) C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:913 (0x565837) (Context).Render: if err := r.Render(c.Writer); err != nil { C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:956 (0x57b8e5) (Context).JSON: c.Render(code, render.JSON{Data: obj}) E:/JsRpc-main/main.go:151 (0x57b6cf) ResultSet: c.JSON(200, gin.H{"status": "200", "group": client.clientGroup, "name": client.clientName, "data": <-c2}) C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0x56a001) (Context).Next: c.handlersc.index C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/recovery.go:99 (0x569fec) CustomRecoveryWithWriter.func1: c.Next() C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0x569146) (Context).Next: c.handlersc.index C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/logger.go:241 (0x569129) LoggerWithConfig.func1: c.Next() C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165 (0x56823d) (Context).Next: c.handlersc.index C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:489 (0x567ec5) (Engine).handleHTTPRequest: c.Next() C:/Users/Administrator/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:445 (0x567b84) (Engine).ServeHTTP: engine.handleHTTPRequest(c) C:/Program Files/Go/src/net/http/server.go:2947 (0x48246b) serverHandler.ServeHTTP: handler.ServeHTTP(rw, req) C:/Program Files/Go/src/net/http/server.go:1991 (0x47eb46) (conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req) C:/Program Files/Go/src/runtime/asm_amd64.s:1594 (0x2a5fc0) goexit: BYTE $0x90 // NOP

sihan-bit commented 1 year ago

升级 github.com/gin-gonic/gin v1.8.2

sihan-bit commented 1 year ago

https://github.com/gin-gonic/gin/issues/2279