Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9072079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T18:05:07+00:00 2026-06-16T18:05:07+00:00

Ok let me be clear. I’m using TCP and that should mean a connection

  • 0

Ok let me be clear. I’m using TCP and that should mean a connection shouldn’t interrupt unless closed or due to network problems.

So here’s my issue:

Utilizing my sockets works perfectly.

After 5 – 10 min of innactivity they stop responding (the connection is still alive [checked with netstat -n]).

It tells me that data is send (but the other side doesn’t receive it and I’m sure it waiting for it.)

If I keep sending, eventually it will give me WSA error 10038 (invalid socket handle).

EDIT after a few more tries of sending, it gave me error 10058 (An established connection was aborted by the software in your host machine. )

I’m confused completely. I haven’t closed the socket nor done anything to it other than inactivity. If I use it nonstop for 10 – 20 minutes, it works perfectly.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T18:05:08+00:00Added an answer on June 16, 2026 at 6:05 pm

    With error 10058, it’s practically certain that a gateway (a proxy, or a firewall, or a router, with or without NAT) is timing out its relay of your connection.

    Basically, you are not directly connected with your peer. Instead, the gateway is in between, and explicitly transfering data between its connection with you and its connection with your peer. Since sockets are a limited resource, the gateway has an eviction policy where it shuts down what look like inactive connections. If you look dead, boom, you are dead.

    Your only option is to remain active, which typically means working in some kind of “heartbeat” into your application protocol. Nasty, but them’s the breaks.

    Unless you really know what you are doing, do not play around with TCP’s SO_KEEPALIVE.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand my question is not that clear so let me try explaining it
I know my title is not that descriptive/clear so let me explain. Yesterday I
I suppose my question in not that clear but let me try to explain
Let's see if I can make the step-by-step clear: namespace InventoryManager.Controllers { public class
Let's say I have 10 breakpoints and I want to clear one but not
Let's say I have cleaner like this .cleaner:after { content: '.'; display: block; clear:
Hoping someone can clear this up for me. Let's say I have 2 globals:
Is it possible to clear one action's cache from another action? Let's say my
Ok, the question might not be crystal clear. Let me give some details: Let's
Before I get anywhere with this post, let me make this clear, there is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.