TCP Connection appears to time out

I have a client/server TCP .Net application. I am getting exceptions on NetStream.Read or Write operations, no data received, if there is a delay of about 10 minutes or longer.

The client app contacts the server. The client may send blobs (many reads and writes back and forth for each blob) of data to the server. The server may then send blobs of data back to the client. There can be a processing delay before each sent blob. Everything works with even large blobs going back and forth. The problem occurs when the processing delay before starting to send a blob becomes around 10 minutes.  For example: Connect, client sends a blob, server process for about 10 minutes, server tries to send a blob, error on first TCP write (read error on first TCP read on client). This problem does not occur if the client and server are on the same LAN. It only occurs when a client outside of the LAN connects through the Router via port forwarding to the server.

Is there some kind of router timeout setting I should be considering? Or maybe an "idling" parameter to tell the TCP connection to stay active for long periods of time?
MikeBroderickAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ste5anSenior DeveloperCommented:
10 minutes sounds like the default timeout values. 600 seconds is prominent value. Sounds like something inbetween or the server itself has a limit for inactive connections.

On the other hand, I would consider for long running tasks a job model. Send the blob enclosed in a job request. And poll the server for the finished job.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.