rlebeau on master
PR #322 and #323 - merging chan… (compare)
with cmdClient.fIdClient.IOHandler do begin WriteBufferOpen; try Write(...); Write(...); Write(...); WriteBufferClose; except WriteBufferCancel; raise; end end;
What Is wrong in this implementation?
In the client, I start a receive thread:
--the receive thread in the client:
----TIdTCPClient.IoHandler.ReadBytes
in the server:
--OnExcute:
----AContext.Connection.IoHandler.ReadBytes
If I first start the test transferring of the client sending data of < 80000 bytes to the server 10000 times and then do the same test reverse of the server sending to the client, there is nothing abnormal.
But if I first start the test of the server sending to the client and then the transferring speed becomes very low when do the test of the client sending to the server.