-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Alexandre Julliard kirjoitti Keskiviikko 13. Marraskuuta 2002 02:00:
Eric Pouech eric.pouech@wanadoo.fr writes:
just a dumb question: shouldn't we better (for synchronous unix reads) convert the fd into a FILE* (cache those FILEs for a few streams, or all of them ?) and let libc do the buffering on file reading/writing ?
This won't work because a FILE* is process-local, while a handle can be shared across processes. Of course there is the same problem with doing the buffering ourselves in the client, so Hannu's solution won't work reliably either. To be reliable the buffering would have to be done in the server, but there's obviously no point in doing that.
Technically, it might be a problem. Practicaly, there are propably no application that would suffer from it. But you are right, this is not a first priority problem.
Hannu