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

  • Home
  • SEARCH
  • 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 3425838
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:38:31+00:00 2026-05-18T06:38:31+00:00

From what I understood from all the documentations of select() , it seems that

  • 0

From what I understood from all the documentations of select(), it seems that select()ing on a write fd_set could be used to check for socket (descriptor) availibility for send()ing so that could be used to detect a successful non-blocking connect() attempt, but what I don’t get is when does a socket ever become unavailable after a successful connect() or accept()?
And does that in theory mean that the socket is always available for send()ing?

As a last question, is it practical to keep select()ing connected sockets in for write operations for the whole session?

Thanks.

  • 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-18T06:38:31+00:00Added an answer on May 18, 2026 at 6:38 am

    The most common case of a socket being unavailable for writing is when the connection goes through a relatively slow network link that your application can saturate. The operating system will buffer a limited amount of data, so your application will have to restrain itself by checking if the socket is available (indicating that some data has been sent and the buffer has free space) before sending more.

    As for your other question, if you have multiple sockets of any kind in use by a single thread, as is the case with e.g. a web server, it certainly makes sense to use select() in order to manage them efficiently.

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

Sidebar

Related Questions

Is it inevitable that all php functions will be used sooner or later when
I am using DBus in a project. I understand from DBus specification that for
From what I understand, in TDD you have to write a failing test first,
The following query returns data right away: SELECT time, value from data order by
The Django documentation gives en example like so: b = Blog.objects.get(id=1) b.entry_set.all() Which from
I don't understand why this didn't work out: select id,name,concat(substring(description,0,30),'...') as desc_shortened, created_date,added_by from
I have a form where a user can select a rating from 1-5. Each
I read all over the Amazon documentations, but I'm still confused or should I
Now from what I understand under Perl ithreads all data is private unless explicitly
I am trying to understand how Lucene should be used. From what I have

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.