hackist / ilip

ilip App test support
0 stars 0 forks source link

lock screen server gone #38

Open bartuer opened 6 years ago

bartuer commented 6 years ago

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)

bartuer commented 6 years ago

HTTP, UDP and WEBSOCKET all stopped, but jx in fact live.

curl 33777 no response.

bartuer commented 6 years ago

maybe switch to background has same problem

bartuer commented 6 years ago

switch to background frame server and feature server error accumulated

bartuer commented 6 years ago

also try other network event like plug out WIFI

bartuer commented 6 years ago

frame and feature UDP server can recover, but HTTP and WebSocket server can not receive error event.

bartuer commented 6 years ago

recover HTTP and WebSocket meanwhile (link "~/local/src/ksedu/applications/src/c/backend/server.js" 2173)

bartuer commented 6 years ago

hook http server start logic into cordova

bartuer commented 6 years ago

all 4 server can recover now, but seems audio session has been killed.

bartuer commented 6 years ago

switch to background, audio recording will not work after servers recover.

bartuer commented 6 years ago

recreate UDP socket, other wise SIGPIPE (link "~/local/src/ksedu/applications/src/jxcore/deps/audio/deps/audevice/audevice.cc" 9360)

bartuer commented 6 years ago

maybe (link "~/local/src/ksedu/applications/src/jxcore/deps/audio/deps/audevice/audevice.cc" 16918) RegisterAudioCallback also losted

bartuer commented 6 years ago

create new socket on current thread

bartuer commented 6 years ago

frame_receiver and front end websocket connection recover

bartuer commented 6 years ago

fully fixed 0bee15ea3ad2cb2f1554d1f65a16af8548dbfcdf