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 7952065
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:45:00+00:00 2026-06-04T02:45:00+00:00

I am using the standard WinSock functions for socket communication, Now suppose I create

  • 0

I am using the standard WinSock functions for socket communication, Now suppose I create a socket and my program terminates abruptly Is there any chance that the socket remains active ?

I tried a little example, first call to the socket API returned 4986, after abruptly terminating the executable the second call to the socket API returned 4946

But I still feel that the socket if not closed remains active for sometime.

Please help me clarify my doubt

  • 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-04T02:45:02+00:00Added an answer on June 4, 2026 at 2:45 am

    On linux machines if you open a socket with a program, then close the program uncleanly i.e. crash it, the socket will remain open. The operating system will clean up these bound sockets in this scenario after a time period has passed (I am not sure how long it is, I assume it specified some where in the OS, it is less than 10 minutes).

    http://compgroups.net/comp.os.ms-windows.programmer.win32/bind-error-after-crash-ho/368539
    I assume this would mean that the WinSock’s do remain open after you crash or forget to close them with your application. I am not sure how windows handles these open sockets but I make inference it would be similar to linux and close them after a time period has elapsed

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

Sidebar

Related Questions

I wrote a program in python (using standard python libraries) long ago. Now I
Using standard mysql functions is there a way to write a query that will
I have an iPhone application that is mostly using standard controls. There is one
I am using standard SMTPHandler logger to catch my Python exceptions. Is there a
Now I'm using standard phase correlation for image stitching. It give normal results, but
Is there shorter/nicer way to read input in console as enumerable using standard features
I need to create a diff file using standard UNIX diff command with python
I would like to create documentation using standard xml. I would like to stay
Hi i am using Standard Regex Library (regcomp, regexec..). But now on demand i
I want to create a visible object with a trajectory using standard actions (CCMoveBy

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.