Open bartuer opened 6 years ago
HTTP, UDP and WEBSOCKET all stopped, but jx in fact live.
curl 33777 no response.
maybe switch to background has same problem
switch to background frame server and feature server error accumulated
also try other network event like plug out WIFI
frame and feature UDP server can recover, but HTTP and WebSocket server can not receive error event.
recover HTTP and WebSocket meanwhile (link "~/local/src/ksedu/applications/src/c/backend/server.js" 2173)
hook http server start logic into cordova
all 4 server can recover now, but seems audio session has been killed.
switch to background, audio recording will not work after servers recover.
recreate UDP socket, other wise SIGPIPE (link "~/local/src/ksedu/applications/src/jxcore/deps/audio/deps/audevice/audevice.cc" 9360)
maybe (link "~/local/src/ksedu/applications/src/jxcore/deps/audio/deps/audevice/audevice.cc" 16918) RegisterAudioCallback also losted
create new socket on current thread
frame_receiver and front end websocket connection recover
fully fixed 0bee15ea3ad2cb2f1554d1f65a16af8548dbfcdf
frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } 2018-04-17 06:17:30.900994+0800 ilip[387:90555] [] nw_socket_get_input_frames recvmsg(fd 41, 1024 bytes): [57] Socket is not connected feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } Mon, 16 Apr 2018 22:17:31 GMT audio:service cloud.chivox.com closed 2018-04-17 06:17:31.395557+0800 ilip[387:84774] dnssd_clientstub write_all(25) DEFUNCT 2018-04-17 06:17:31.395694+0800 ilip[387:84774] dnssd_clientstub deliver_request ERROR: write_all(25, 57 bytes) failed 2018-04-17 06:17:31.396030+0800 ilip[387:84774] dnssd_clientstub write_all(25) DEFUNCT 2018-04-17 06:17:31.482076+0800 ilip[387:84697] SocketStream read error [0x101f83d20]: 1 57 frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } feature server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' } frame server error: { [Error: recvmsg ENOTCONN] code: 'ENOTCONN', errno: 'ENOTCONN', syscall: 'recvmsg' }
and frontend server has gone (onerror)