ing
This commit is contained in:
		
							parent
							
								
									724ed780bf
								
							
						
					
					
						commit
						18eac21b52
					
				| @ -143,16 +143,16 @@ func (s *server) handleRequest(ctx *fasthttp.RequestCtx) { | |||||||
| 		s.handleError(ctx, http.StatusNotAcceptable, fmt.Errorf("Server: Handshake err")) | 		s.handleError(ctx, http.StatusNotAcceptable, fmt.Errorf("Server: Handshake err")) | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 	logging.Logger().Debug(fmt.Sprintf("Server: Client is Handshake.")) |  | ||||||
| 
 | 
 | ||||||
| 	s.upgrader.Upgrade(ctx, responseHeader, func(conn *websocket.Conn, err error) { | 	s.upgrader.Upgrade(ctx, responseHeader, func(conn *websocket.Conn, err error) { | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			s.handleError(ctx, fasthttp.StatusInternalServerError, err) | 			s.handleError(ctx, fasthttp.StatusInternalServerError, err) | ||||||
| 			return | 			return | ||||||
| 		} | 		} | ||||||
| 		logging.Logger().Debug(fmt.Sprintf("Server: Client is Upgrade.")) |  | ||||||
| 
 | 
 | ||||||
| 		socketCTX := socketHandler.SocketContext(s.ctx) | 		socketCTX := socketHandler.SocketContext(s.ctx) | ||||||
|  | 		logging.Logger().Debug(fmt.Sprintf("Server: Client is SocketContext.")) | ||||||
|  | 
 | ||||||
| 		soc := newSocket(socketHandler, socketCTX, conn, socketID) | 		soc := newSocket(socketHandler, socketCTX, conn, socketID) | ||||||
| 		logging.Logger().Debug(fmt.Sprintf("Server: Client[%s] is connected.", soc.RemoteAddr())) | 		logging.Logger().Debug(fmt.Sprintf("Server: Client[%s] is connected.", soc.RemoteAddr())) | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user