Closed sihan-bit closed 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
升级 github.com/gin-gonic/gin v1.8.2
https://github.com/gin-gonic/gin/issues/2279
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