Skip to content

Commit

Permalink
websocket 启动时,控制台提示
Browse files Browse the repository at this point in the history
  • Loading branch information
valiner committed Mar 28, 2024
1 parent a14c19e commit ca57226
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion znet/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ func (s *Server) ListenTcpConn() {

func (s *Server) ListenWebsocketConn() {
zlog.Ins().InfoF("[START] WEBSOCKET Server name: %s,listener at IP: %s, Port %d is starting", s.Name, s.IP, s.WsPort)

http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
// 1. Check if the server has reached the maximum allowed number of connections
// (设置服务器最大连接控制,如果超过最大连接,则等待)
Expand Down

0 comments on commit ca57226

Please sign in to comment.