[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: kio_http fix
From:       Matthias Welwarsky <matze () stud ! fbi ! fh-darmstadt ! de>
Date:       2002-03-30 15:11:27
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi, 

I think I know what's happening:

this happens if the server closes the connection behind the back of the 
ioslave. this can happen, of course, and there's code in httpOpen() to handle 
the case: the return value of the write() call is checked to see if sending 
worked, but it seems that this does not help!

sendOk signals "OK" even when the socket was dead already. This is probably a 
bug in openssl. In that case, we should possibly disable keepalive 
connections when using SSL.

btw: write() returns ssize_t while sendOk is bool. This is a bug, as write() 
will return -1 in case of an error, which when assigned to a bool is "true". 
this is bogus.

regards,
	Matze 

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

"all software sucks equally, but some software is more equal"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8pdWjANO+fpRuZ2IRAh7GAJ97BlGNKsA2PkSIYDUkrTx83NUaqgCdH1Qw
Qi8SbAlgEmLllrijV+mSLew=
=1U3l
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic