loboris/ESP32-PPPOS-EXAMPLE

Closing ppp connection timming

bfabricio opened this issue · 0 comments

There is a long time(10s +) between calling the function pppapi_close(ppp, 0) and the event of closing the connection.

local IP address 10.51.139.201
remote IP address 10.64.64.64
primary DNS address 8.8.8.8
secondary DNS address 8.8.4.4
ppp phase changed[1]: phase=8
pppos_netif_output[1]: proto=0x21, len = 44
pppos_input[1]: got 49 bytes
ppp_input[1]: ip in pbuf len=44
I (29635) [SOCKET]: ... connected
pppos_netif_output[1]: proto=0x21, len = 40
pppos_netif_output[1]: proto=0x21, len = 81
I (29645) [SOCKET]: ... socket send success
pppos_input[1]: got 49 bytes
ppp_input[1]: ip in pbuf len=44
pppos_netif_output[1]: proto=0x21, len = 40
pppos_input[1]: got 45 bytes
ppp_input[1]: ip in pbuf len=40
pppos_input[1]: got 92 bytes
ppp_input[1]: ip in pbuf len=41
ppp_input[1]: ip in pbuf len=40
pppos_netif_output[1]: proto=0x21, len = 40
I (31445) [SOCKET]: Received from server 255
pppos_netif_output[1]: proto=0x21, len = 40
ppp_close[1]: kill_link -> lcp_close <<<<<<< ---------------- call pppapi_close(ppp, 0);
ppp phase changed[1]: phase=9
ppp phase changed[1]: phase=7
sifvjcomp[1]: VJ compress enable=0 slot=0 max slot=0
sifdown[1]: err_code=5
ccp_set[1]: is_open=0, is_up=0, receive_method=0, transmit_method=0
ppp phase changed[1]: phase=4
pppos_send_config[1]: out_accm=FF FF FF FF
ppp_send_config[1]
pppos_recv_config[1]: in_accm=0 0 A 0
ppp_recv_config[1]
pppos_write[1]: len=20
pppos_write[1]: len=20
ppp phase changed[1]: phase=10
Connection terminated.
ppp phase changed[1]: phase=0
ppp_link_terminated[1]
ppp_end[1]
E (43015) [PPPOS CLIENT]: status_cb: User interrupt <<<<<<----------- closing event
ppp_link_terminated[1]: finished. <<<<<<----------- end of ppp connection

I'm wondering if it is possible to reduce this time?