Getting constant delay between TCP Socket data send C# -


i have client-server application in c# 2010. in tcp socket setup nodelay = true, , sendbuffersize = 0 connected socket (client-server) in application.

i tracing every incoming-outgoing packets , writing in logfile using streamwriter, has autoflush property set true.

i noticed 1 thing there constant delay (15-16ms) between 2 data packets while sending data. after few continuous sending delay appears again.

why delay? , how can avoid it....

see images...

http://s4.postimg.org/uoly38shp/trace_1.png
http://s14.postimg.org/m4ab7oght/trace_2.png

if using datetime track performance 15ms provided resolution. try using stopwatch more reliable.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -