[DGD] Re: Small problem with my FTP daemon

Erlend Simonsen erlesimo at online.no
Wed Jan 14 01:08:23 CET 1998


"Felix A. Croes" <felix at xs1.simplex.nl> writes:

> The buffer for send_message() automatically adapts to the amount of
> data sent.  Note however that the return value from send_message(),
> which indicates whether or not the messae could be sent right of in
> its entirety, is slightly different when the networking package is
> installed (see the documentation).  I suspect that the problems you
> are experiencing have something to do with this.

Okey. I've read through the docs to make sure I understood everything
correctly, and I think I did. And it seems I found a way to go around
the problem.

It seems that send_message( data ) returns 0, and send_message( -1 )
returns 0 right after sending off my block of data which is bigger
than ~1Kb. So naturally, I send of the next packet. Then everything
bugs out completely. The received file is corrupt, and much bigger
than the original.

But if I wait for 1 second or write a line to a logfile before sending
off the next packet, everything works fine.

BTW - This is with DGD 1.1.30 with the networking package installed.

-- 
Erlend Simonsen
erlesimo at online.no




List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list