@@ -24,10 +24,10 @@ if not debug_port then
2424 debug_port = ngx .var .remote_addr
2525end
2626
27- local udpsock = ngx .socket .udp ()
27+ -- local udpsock = ngx.socket.udp()
2828
29- ok , err = udpsock :setpeername (debug_port , 7777 )
30- ngx .log (ngx .ERR , " udpsock ok:" , ok , " err:" , err , " debug_port:" , debug_port )
29+ -- ok, err = udpsock:setpeername(debug_port, 7777)
30+ -- ngx.log(ngx.ERR, "udpsock ok:", ok, " err:", err, " debug_port:", debug_port)
3131
3232
3333
@@ -75,13 +75,13 @@ if not ws then
7575 return
7676end
7777
78- ngx .log (ngx .ERR , " connection:" , connectionId , " start connect." )
78+ -- ngx.log(ngx.ERR, "connection:", connectionId, " start connect.")
7979
8080function connectWebSocket ()
8181 -- start receiving message from context.
8282 ngx .thread .spawn (contextReceiving )
8383
84- ngx .log (ngx .ERR , " connection:" , connectionId , " established. the_id:" , the_id , " to context:" , IDENTIFIER_CONTEXT )
84+ -- ngx.log(ngx.ERR, "connection:", connectionId, " established. the_id:", the_id, " to context:", IDENTIFIER_CONTEXT)
8585
8686 -- send connected to gameContext.
8787 local data = STATE_CONNECT .. connectionId .. the_id
@@ -211,10 +211,10 @@ function contextReceiving ()
211211 end
212212
213213 else
214- do
215- local ok , err = udpsock :send (sendingData )
216- ngx .log (ngx .ERR , " udp send ok:" , ok , " err:" , err )
217- end
214+ -- do
215+ -- local ok, err = udpsock:send(sendingData)
216+ -- ngx.log(ngx.ERR, "udp send ok:", ok, " err:", err)
217+ -- end
218218
219219
220220 -- send data to client
0 commit comments