cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: fflush and fsync

From: Jamie Lokier <jamie_at_shareable.org>
Date: Tue, 22 Apr 2008 17:48:51 +0100

Yang Tse wrote:
> For portability sake maybe a token file mechanism could be used. The
> file would be created by the sws server once that a client connects,
> and deleted once that the client disconnects or is disconnected. The
> runtests.pl script, once that the client part has run, should wait a
> timeout for the token file to dissapear and read the produced file.
>
> Does it make sense to try out this approach ? Or can someone foresee
> new problems this would introduce ?

Seems fine to me if both programs are on the same machine.

If they are on different machines, 'file A written' and 'file B
created' can be seen out of order on the other machine. Is that
relevant to the remote testing?

-- Jamie
Received on 2008-04-22