Hi list,
I am getting this error "ERROR: websocket [ws_handshake.c:153]:
ws_handle_handshake(): retrieving connection"
Any idea why?
This is the debug log
12(24113) DEBUG: <core> [receive.c:154]: receive_msg(): After parse_msg...
12(24113) DEBUG: xhttp [xhttp_mod.c:358]: xhttp_handler(): new fake msg created (537
bytes):
<GET /ws HTTP/1.1
Via: SIP/2.0/TLS 10.1.1.1:45968
Host: 10.1.1.2:10443
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Sec-WebSocket-Version: 13
Origin:
http://mydomain.co.uk
Sec-WebSocket-Protocol: sip
Sec-WebSocket-Key: GRbV+ovG+DKIBJtwb4pRiQ==
Connection: keep-alive, Upgrade
Pragma: no-cache
Cache-Control: no-cache
Upgrade: websocket
12(24113) DEBUG: <core>
[parser/msg_parser.c:623]: parse_msg(): SIP Request:
12(24113) DEBUG: <core> [parser/msg_parser.c:625]: parse_msg(): method:
<GET
12(24113) DEBUG: <core>
[parser/msg_parser.c:627]: parse_msg(): uri: </ws
12(24113) DEBUG: <core> [parser/msg_parser.c:629]: parse_msg(): version:
<HTTP/1.1
12(24113) DEBUG:
<core> [parser/parse_via.c:2672]: parse_via(): end of header reached, state=5
12(24113) DEBUG: <core> [parser/msg_parser.c:513]: parse_headers(): parse_headers:
Via found, flags=2
12(24113) DEBUG: <core> [parser/msg_parser.c:515]: parse_headers(): parse_headers:
this is the first via
12(24113) DEBUG: sl [sl.c:288]: send_reply(): reply in stateless mode (sl)
12(24113) DEBUG: <core> [parser/msg_parser.c:106]: get_hdr_field(): found end of
header
12(24113) DEBUG: <core> [msg_translator.c:205]: check_via_address():
check_via_address(10.1.1.1, 10.1.1.1, 0)
12(24113) DEBUG: <core> [tcp_main.c:2281]: tcpconn_send_put(): tcp_send: send from
reader (24113 (12)), reusing fd
12(24113) DEBUG: <core> [tcp_main.c:2516]: tcpconn_do_send(): tcp_send: sending...
12(24113) DEBUG: <core> [tcp_main.c:2550]: tcpconn_do_send(): tcp_send: after real
write: c= 0x7fc08162ad68 n=421 fd=7
12(24113) DEBUG: <core> [tcp_main.c:2551]: tcpconn_do_send(): tcp_send: buf=
�/�*����!��S�����zo�e�/D���V�Gs��s��� ^cd��S"Ŏ�K����<�c7���4lx�<Z��#�c(AJ�8V��d�
��4bF��Wu�(�w�a� f��n��s�KjQv�݈�q|Z����64{Wk��Z\ױ����M�,[�Arٵ���Q�_���u�d�Gza�f��I�fI���z��Š9=���Ħ3�ȀJPx�}����S?��eVe���\id��y�wP�r(kZs��Z�"����4`�N_MR��z�!��Eb}���+�\;�8�3��V���l��M�|�1�2��VVK�@%�a�B&�P���k
12(24113) INFO: <script>: Received HTTP request to /ws from [10.1.1.1:45968] with
protocol tls
14(24115) DEBUG: <core> [tcp_main.c:3565]: handle_ser_child(): handle_ser_child:
read response= 7fc08162ad68, -1, fd -1 from 12 (24113)
14(24115) DEBUG: tls [tls_server.c:604]: tls_h_close(): Closing SSL connection
0x7fc081626e20
12(24113) ERROR: websocket [ws_handshake.c:153]: ws_handle_handshake(): retrieving
connection
12(24113) DEBUG: sl [sl.c:288]: send_reply(): reply in stateless mode (sl)
12(24113) DEBUG: <core> [msg_translator.c:205]: check_via_address():
check_via_address(10.1.1.1, 10.1.1.1, 0)
12(24113) ERROR: sl [../../forward.h:247]: msg_send(): tcp_send failed
12(24113) ERROR: websocket [ws_handshake.c:113]: ws_send_reply(): sending reply
12(24113) DEBUG: <core> [usr_avp.c:643]: destroy_avp_list(): DEBUG:destroy_avp_list:
destroying list (nil)
12(24113) DEBUG: <core> [usr_avp.c:643]: destroy_avp_list(): DEBUG:destroy_avp_list:
destroying list (nil)
12(24113) DEBUG: <core> [usr_avp.c:643]: destroy_avp_list(): DEBUG:destroy_avp_list:
destroying list (nil)
12(24113) DEBUG: <core> [usr_avp.c:643]: destroy_avp_list(): DEBUG:destroy_avp_list:
destroying list (nil)
12(24113) DEBUG: <core> [usr_avp.c:643]: destroy_avp_list(): DEBUG:destroy_avp_list:
destroying list (nil)
12(24113) DEBUG: <core> [usr_avp.c:643]: destroy_avp_list(): DEBUG:destroy_avp_list:
destroying list (nil)
12(24113) DEBUG: <core> [xavp.c:448]: xavp_destroy_list(): destroying xavp list
(nil)
12(24113) DEBUG: <core> [receive.c:298]: receive_msg(): receive_msg: cleaning up
12(24113) DEBUG: <core> [io_wait.h:610]: io_watch_del(): DBG: io_watch_del
(0xa31f40, 7, -1, 0x10) fd_no=2 called
12(24113) DEBUG: <core> [tcp_read.c:1434]: release_tcpconn(): releasing con
0x7fc08162ad68, state -2, fd=7, id=3
12(24113) DEBUG: <core> [tcp_read.c:1435]: release_tcpconn(): extra_data
0x7fc081626e20
14(24115) DEBUG: <core> [tcp_main.c:3331]: handle_tcp_child(): handle_tcp_child:
reader response= 7fc08162ad68, -2 from 2
9(24110) DEBUG: websocket [ws_conn.c:459]: wsconn_get_list(): wsconn_get_list