简体   繁体   中英

C# Asynchronous TCP socket communication crashes on 2.try over seperate computers at network

I'm trying to develop an asynch TCP server-client application. In my application i'm using MSDN article as a start point. I changed the code block for transfering serialized objects instead transfering string. And i'm transferring large data in this objects with several packages.

On my local machine everything fine: In the begining client connects, server accepts and they connected till i end. Client send request when i trig and starts to waiting data, server receives data, and server immidiately returns a result sending, client receives this result and operation is over. Whilst still system has connected, i'm trigging client again and the transaction is repeating. How many time i trig everything working fine.

But at any other intranet computer, client starts connection, server accepts and transaction works fine at first time.. But at the second try, server answering result but client application suspending at BeginReceive-EndReceive cycle...

What is wrong? Are there any nerwork limitation for asynch .net c# TCP socket infrastructure?

没有代码很难说,但是请检查您的keepalive设置(尝试将其关闭)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM