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

Matthias Welwarsky matze at stud.fbi.fh-darmstadt.de
Mon Sep 30 10:20:22 BST 2002


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.

regards,
	matze

-- 
Matthias Welwarsky
Fachschaft Informatik FH Darmstadt
Email: matze at stud.fbi.fh-darmstadt.de

"all software sucks equally, but some software is more equal"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: connection.cpp.patch
Type: text/x-diff
Size: 544 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020930/62710a7f/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20020930/62710a7f/attachment.sig>


More information about the kde-core-devel mailing list