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?
[Need Confirm]: ReadString will clear away receive buffer?
-
- Posts: 22
- Joined: Tue 15 May 2012 14:01
Re: [Need Confirm]: ReadString will clear away receive buffer?
1. You can use the TScSSHChannel.SkipBuffer method to skip some data with no reading it to buffer.
2. The buf variable is released automatically on exit from the ReadString method.
2. The buf variable is released automatically on exit from the ReadString method.