Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed it need 18mins timeout to shutdown socket when it lost network … #1091

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

G-MoYang
Copy link

@G-MoYang G-MoYang commented Mar 8, 2023

…connection

@G-MoYang
Copy link
Author

G-MoYang commented Mar 8, 2023

I am using SignalR library.
websocketpp is one port of vcpkg.
Envoriment: Raspberry pi, Raspbian GNU/Linux 11
Reprso Steps:

  1. Setup connection with server by SignalR(websocket)
  2. Disable network connection.
  3. Call close() in ws_client_wspp.cpp
  4. It send close frame to server.
  5. It timeout by 10s close hanshake.
  6. It not cancel socket successfully, so it keep wait. (handle_close_handshake_timeout()->terminate()->transport_con_type::async_shutdown()->handle_async_shutdown_timeout()->cancel_socket_checked()->socket_con_type::cancel_socket())
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant