Giter Club home page Giter Club logo

douyin-live-go's Issues

连接不上

改了房间id后,直接连接不上,好像是协议更新了

websocket异常

在程序运行一段时间之后会出现socket异常,异常也各不相同
panic: websocket: close 1006 (abnormal closure): unexpected EOF

goroutine 67 [running]:
main.(*Room).read(0xc000092000)
D:/workStation/go/douyin-live-go/room.go:123 +0x2e5
created by main.(*Room).Connect
D:/workStation/go/douyin-live-go/room.go:114 +0x314

panic: concurrent write to websocket connection

goroutine 20 [running]:
github.com/gorilla/websocket.(*messageWriter).flushFrame(0xc00060af90, 0x1, {0x0?, 0x0?, 0x0?})
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:617 +0x52b
github.com/gorilla/websocket.(*messageWriter).Close(0x0?)
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:731 +0x45
github.com/gorilla/websocket.(*Conn).beginMessage(0xc000135760, 0xc00060afc0, 0x2)
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:480 +0x42
github.com/gorilla/websocket.(*Conn).NextWriter(0xc000135760, 0x2)
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:520 +0x45
github.com/gorilla/websocket.(*Conn).WriteMessage(0x0?, 0x0?, {0xc00020c854, 0x4, 0x4})
C:/Users/Administrator/go/pkg/mod/github.com/gorilla/[email protected]/conn.go:773 +0x152
main.(*Room).send(0xc00005d920)
D:/workStation/go/douyin-live-go/room.go:156 +0xa5
created by main.(*Room).Connect
D:/workStation/go/douyin-live-go/room.go:115 +0x35c

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.