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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:29:52+00:00 2026-05-28T23:29:52+00:00

(Linux 3.0, x86_64) If I stop calling recv(2) for a while on a connected

  • 0

(Linux 3.0, x86_64)

If I stop calling recv(2) for a while on a connected tcp socket, and the other host keeps sending data, than presumably this data is received and buffered by the kernel, so the next time I call recv it will return quickly with all the waiting data.

My question is how big is this receive buffer, and how does it work? Are there any relevant kernel or socket settings I can use to tune its behavior? What does the tcp stack do when it fills up?

  • 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-28T23:29:53+00:00Added an answer on May 28, 2026 at 11:29 pm

    The receive buffer can be changed with setsockopt(SO_RCVBUF). The default size is controlled by the tcp_rmem sysctl. If the buffer fills up, the stack will stop extending the receive window it offers to the other side, forcing the other size to stop sending data until there’s space in the buffer.

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

Sidebar

Related Questions

I am installing Matrix on a Linux x86_64 multicore system. I receive a message:
I'm using GNU bash, version 3.00.15(1)-release (x86_64-redhat-linux-gnu). And this command: echo -e doesn't print
Linux provides the stime(2) call to set the system time. However, while this will
Is this code snippet well defined in ANSI C? On my system (Linux x86_64)
I am new to linux, while compiling with dynamic library I am getting the
Is a boost binary archive portable from one Linux x86_64 machine to another Linux
I'm using Python 2.7.2 and wxPython 2.8.12.1 on Arch Linux x86_64. I'd like to
?Is it possible to start an x86_64 code on i686 Linux (x86, 32-bit)? My
this is about the logging module on Python 3.2 (GNU/Linux x86_64): is it possible
I have a makefile that works transparently for Linux ( x86_64 ) and OS

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.