[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Streams: EOF detection

From: Erik Huelsmann <ehuels_at_gmail.com>
Date: 2005-11-26 20:35:53 CET

I'm trying to write a stream implementation and I need to know the
criterion for detecting the stream I'm relaying.

Now, the headers for streams say that a partially satisfied read
(without error) means an EOF condition was found. Reading the
implementation for svn_stream_copy, it keeps reading the stream until
a non-satisfied read is encountered (returned bytes == 0).

I think the latter condition is saner, since I think to be told that
there are socket reads which are successful, but only return part of
the requested data without meaning to signal EOF.

What'll be the official 'verdict'?


Received on Sat Nov 26 20:36:39 2005

This is an archived mail posted to the Subversion Dev mailing list.