-
- Downloads
multiplexed_socket: add ping/pong logic
Detecting that a socket is down via a keep alive can take time, moreover if a relay is used, because the keep alive can continue to work even if the connection is half closed. In this patch, we add a mechanism where a beacon is sent over the multiplexed socket to know if the peer can answer. This message can be used to detect if a socket is usable and is sent whenever the user starts a call or that a connectivityChanged() occurs. Moreover, the multiplexedsocket can now sends a version to enable features and if a bad packet on the control socket comes, the socket is not stopped. GitLab: #542 Change-Id: Ia66d8d7f9b66bba02927f4ea41c21ef27089bceb
Showing
- configure.ac 1 addition, 1 deletionconfigure.ac
- meson.build 1 addition, 1 deletionmeson.build
- src/jamidht/connectionmanager.cpp 56 additions, 43 deletionssrc/jamidht/connectionmanager.cpp
- src/jamidht/connectionmanager.h 12 additions, 1 deletionsrc/jamidht/connectionmanager.h
- src/jamidht/jamiaccount.cpp 14 additions, 12 deletionssrc/jamidht/jamiaccount.cpp
- src/jamidht/multiplexed_socket.cpp 275 additions, 18 deletionssrc/jamidht/multiplexed_socket.cpp
- src/jamidht/multiplexed_socket.h 54 additions, 7 deletionssrc/jamidht/multiplexed_socket.h
- test/unitTest/connectionManager/connectionManager.cpp 300 additions, 117 deletionstest/unitTest/connectionManager/connectionManager.cpp
Loading
Please register or sign in to comment