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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:01:49+00:00 2026-05-28T02:01:49+00:00

I have a client-server communication in Python. If I’m sending 10MB data from the

  • 0

I have a client-server communication in Python. If I’m sending 10MB data from the server to the client in one package can the client handle this big data in one package? What if the client is reading the data after 1minute. For example, I establish a connection and sending the 10MB message to the client, but the client is capable to receive the message only after 1 minute ore more. How big is the TCP buffer? Is it possible to lose data (buffer overflow). Will it hang the server?

time.sleep(60)
self.request.recv( 20480 )
  • 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-28T02:01:50+00:00Added an answer on May 28, 2026 at 2:01 am

    TCP is stream oriented, not packet oriented, so it makes no sense to talk about “one package” in TCP. While the data will in fact be sent as IP packets further down the network stack, the TCP layer will guarantee that you can not discern how the data is split into packets and reassembled on the receiving side.

    The TCP buffer size is not specified in a standard, but if the server does not read from the socket when the buffer on the server side is full, the client will stop sending. In other words, TCP does flow control. In this scenario, you might actually hang the client.


    What you should do is to continually send chunks of some manageable size (say 8k) from the client, and continually read on the server. The data should be buffered on the server side in your program if you need it. As I said, TCP does not deal in packets.

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

Sidebar

Related Questions

An Android/Iphone app will be accessing application data from the server. [Django-Python] How can
I have client/server applications and a very simple protocol for communication. More precisely, it's
I have a client-server application written in Java using CORBA for the communication. The
We have client server based app which saves user related data into a zip
I have built a Python server to which various clients can connect, and I
I have a client server application in which the communication between the client and
I need to implemented security for client-server communication. I have implemented the following hybrid
we're have a client that needs to get interactive messages from a server, from
My client-server communication looks like this: there are some so called annoucements which are
When will I normally need different ports for client-server communication? (This question is for

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.