Thanks Mark, I'm already doing exactly what you said, but the code is just blocking on the read back from the inputstream.
On 26/04/06, Mark E. Mallett <[EMAIL PROTECTED]> wrote: > > On Wed, Apr 26, 2006 at 06:26:23PM +0100, Ollie Brady wrote: > > Hi > > > > I'm having a problem with clamd. I'm sending it a STREAM request and > getting > > the port to re-connect to back fine but when I re-connect and send the > > stream to clamd it just waits there and does not respond....it there > > anything obvious that I'm doing wrong? I'm sending a "\r\n" at the end > of > > the stream and also flushing the stream too but to no avail.... > > any help much appreciated. > > Close the new connection when done... > > As far as I remember, and with a quick glance at some working code (mine): > > - open connection to server > - send STREAM > - get response containing port number > - open new output stream to new port > - send data > - flush data > - close new output stream > - read response from original channel > > with caveats that clamd may stop receiving on the new output stream > whenever > it decides to, and may give a result back on the original channel whenever > it decides to. > > -mm- > _______________________________________________ > http://lurker.clamav.net/list/clamav-users.html > -- -------------------------------------------------------------------------------------------------------------------------------------- FEED THE WORLD WITH A CLICK OF THE MOUSE. http://www.thehungersite.com - click once day to donate a cup of food to a starving person. -------------------------------------------------------------------------------------------------------------------------------------- _______________________________________________ http://lurker.clamav.net/list/clamav-users.html
