[PATCH] fix endless loop hang in KIO::Connection::read()

Stephan Kulow coolo at kde.org
Mon Sep 30 13:22:20 BST 2002


Am Monday 30 September 2002 11:20 schrieb Matthias Welwarsky:
> hi,
>
> this patch prevents and endless loop if the peer unexpectedly closes the
> connection. However, I wonder if it'd be better to return the number of
> bytes read so far instead of -1. please comment/commit.
>
Hmm, if the peer closes the connection you should get a SIG_PIPE. In what
slave do you see that? The patch is surely not wrong, but doesn't fix the
real problem.

Greetings, Stephan






More information about the kde-core-devel mailing list