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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:35:26+00:00 2026-05-23T11:35:26+00:00

Newbie question here.. Just trying to be sure here.. This is not a HTTP

  • 0

Newbie question here.. Just trying to be sure here..

This is not a HTTP Keep-Alive question.

Is there a way to make sure a socket gets closed() after a certain amount of time.

Why i’m asking this because if I just close socket right away.. the client may not receive the packet to indicate like incorrect password etc..

Is there any timeout like built in command inside Socket?

I’m trying to avoid building a timer or event to close it off thinking of a alternate solution

  • 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-05-23T11:35:26+00:00Added an answer on May 23, 2026 at 11:35 am

    I never tried it myself, but there is LingerOption.

    Take a look at Socket.LingerState Property.

    This property controls the length of
    time that a connection-oriented
    connection will remain open after a
    call to Close when data remains to be
    sent. When you call methods to send
    data to a peer, this data is placed in
    the outgoing network buffer. This
    property can be used to ensure that
    this data is sent to the remote host
    before the Close method drops the
    connection.

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

Sidebar

Related Questions

Here is one more newbie question: require 'tasks/rails' I saw this line in Rakefile
This is sort of SQL newbie question, I think, but here goes. I have
Newbie question since I'm not up to speed using maven at all. I'm trying
I'm learning F# from just a few days, so here's a newbie question: I've
This is a brain-dead newbie question, but here goes: What determines what files get
Just starting with php and sorry if this is a newbie question but i'm
I'm sure this is a newbie question so sorry in advance. I've read a
Complete newbie question here: I'm just playing with C# for the first time and
Just a quick question from a newbie to the pro's. I am trying to
newbie here, first post. I just spent like 4 hours trying to assign one

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.