开发者

C# TCP First Message Delay

开发者 https://www.devze.com 2022-12-23 14:24 出处:网络
greetings, i am writng a socket program using sockets in c# (asynchronous). the issue is, when a client connects to the server it kinda happens quiet fast. then..

greetings,

i am writng a socket program using sockets in c# (asynchronous).

the issue is, when a client connects to the server it kinda happens quiet fast. then..

when the first message is sent there is a delay in responding.

this only happens to the very first data being sent over the connection. and boh client and server suffers from this b开发者_开发技巧ehaviour.

what is this delay? is there a way to get rid of this?

many thanks.


i solved the issue by doing a handshake between the nodes. its more of a hack than a solution.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号