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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:41:17+00:00 2026-06-10T19:41:17+00:00

I have a server and multiple clients which connect via TCP sockets. The server

  • 0

I have a server and multiple clients which connect via TCP sockets. The server listens for connecting clients which first register themselves using their unique device id. When the device first registers, the server then ‘prods’ the client with a small message. This wakes up the client into downloading data from another source.

The problem we are having is that the network is over GPRS and quite often in poor coverage areas the network goes down or the quality of service is poor. What seems to be happening is that inside the client, the NetworkStream.Read() call is blocking even when the network layer drops. There is no exception thrown and even when the network returns, the call seems to then not detect any data.

Is there any reason for this? How do I get round this issue?

I would have thought the NetworkStream would at least throw an exception so the client can go into a retry connect stage.

  • 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-10T19:41:18+00:00Added an answer on June 10, 2026 at 7:41 pm

    NetworkStream does not detect connectivity between one client and another. It just listens for data. Read() blocks the thread until it receives data.

    Instead, consider using BeginRead (or ReadAsync in .Net 4.5). It won’t block the thread and, after a timeout with no new data, you can close the socket, create a new one and start again.

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

Sidebar

Related Questions

I have a server that connects to multiple clients using TCP/IP connections, using C
I have a server to which multiple clients can connect to. The client is
I have Client/Server System (using Socket) with multiple clients and single server, which is
In our application we have a server which will connect to multiple clients. For
I have client and server programs which now communicate via TCP. I'm trying out
I have a small server application which receives connections from multiple clients. The clients
I have a sharepoint server used for multiple clients which I installed on my
I currently have a single web server hosting multiple WordPress sites which use W3TC.
I need to develop a client server system where I can have multiple clients
I have a TCP based Netty application with multiple clients that need to communicate

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.