CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2008
    Posts
    168

    How to ignore RST flag from Kernel

    Hi,

    I am facing one issue. The issue is nothing but kernel RST flags closed ideal sockets.
    It happened every 5 minutes. Can anybody tell how to ignore the RST flag command from the kernel.?

    -Dave1024

  2. #2
    Join Date
    Sep 2024
    Posts
    7

    Re: How to ignore RST flag from Kernel

    To ignore RST flags in the Linux kernel and prevent closed ideal sockets from being reset, you can adjust the TCP settings using the sysctl command. Specifically, you can set the tcp_retries2 parameter to a higher value to increase the number of retransmissions before a connection is considered failed. Use the following command: vn mod apk

    sudo sysctl -w net.ipv4.tcp_retries2=15

    This will allow for more retries before dropping the connection. You may also consider adjusting the tcp_fin_timeout to a longer duration to help mitigate the issue. To make these changes persistent across reboots, add them to your /etc/sysctl.conf file.
    Last edited by Juliadyer; October 25th, 2024 at 02:42 AM.

  3. #3
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,415

    Re: How to ignore RST flag from Kernel

    could you suggest a way to do the same/similar on Windows platform?
    Last edited by 2kaud; October 3rd, 2024 at 03:29 AM.
    Victor Nijegorodov

  4. #4
    2kaud's Avatar
    2kaud is online now Super Moderator Power Poster
    Join Date
    Dec 2012
    Location
    England
    Posts
    7,857

    Re: How to ignore RST flag from Kernel

    @Dave1024 - for which os is this question related?
    All advice is offered in good faith only. All my code is tested (unless stated explicitly otherwise) with the latest version of Microsoft Visual Studio (using the supported features of the latest standard) and is offered as examples only - not as production quality. I cannot offer advice regarding any other c/c++ compiler/IDE or incompatibilities with VS. You are ultimately responsible for the effects of your programs and the integrity of the machines they run on. Anything I post, code snippets, advice, etc is licensed as Public Domain https://creativecommons.org/publicdomain/zero/1.0/ and can be used without reference or acknowledgement. Also note that I only provide advice and guidance via the forums - and not via private messages!

    C++23 Compiler: Microsoft VS2022 (17.6.5)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured