[Need Confirm]: ReadString will clear away receive buffer?
Posted: Fri 22 Aug 2014 03:48
Hello
While reading the source code of securebridge to solve the problem of 8 thousand connection
http://forums.devart.com/viewtopic.php?f=27&t=30039 for clear away any possible memory usage due to received response from destination. I need following confirmation
1. Can I use ReadString to clear away the receive buffer and reduce the memory usage, in case of "alarm-storm" case when I would like to ignore any response?
2.
unit ScSSHChannel.pas
procedure ReadString
line 889
the var "buf" is allocated by a call of "SetLength", when do we release the allocated memory by "buf:=nil"? Is here a possible memory leakage?
While reading the source code of securebridge to solve the problem of 8 thousand connection
http://forums.devart.com/viewtopic.php?f=27&t=30039 for clear away any possible memory usage due to received response from destination. I need following confirmation
1. Can I use ReadString to clear away the receive buffer and reduce the memory usage, in case of "alarm-storm" case when I would like to ignore any response?
2.
unit ScSSHChannel.pas
procedure ReadString
line 889
the var "buf" is allocated by a call of "SetLength", when do we release the allocated memory by "buf:=nil"? Is here a possible memory leakage?