Jump to content

abe

Members
  • Content Count

    2
  • Joined

  • Last visited

Everything posted by abe

  1. Hello, guys. I am developing an application in Delphi where I'm using ICS8. My application acts as a SocketServer, its clients are TWSocketClient objects. The thing is, I'm trying to send some files (~100MB) over TCP and somewhere inside the TWSocketClient instance the data is being kept inside some buffer even after it's sent and received by the client, causing some sort of a leak. (If I destroyed the Client object without destroying the inherited part, the memory was still allocated) And I'm talking about some memory use (over 100MB per client when idle). Whenever the client is disconnected, the memory is freed. The first chunks of data are being sent with RealSend, when the AllSent turns into False, I use the inherited Send. Can someone shed some light on what am I missing? I tried checking for the SocketSndBufSize and SocketRcvBufSize properties and they're both set at their default value before and after the memory leak. BufSize is 1460. Checking the code, I got a feel like my data is being put inside FBufHandler's FFreeList and being kept there forever. For contract reasons, I can't share any code snippet. Thanks. Abe
  2. Hello, François. First of all, it's a pleasure talking to you. Thank you for enlightening me on this process, your explanation was really helpful. Abe.
×