Bug 58197 - kio_http processes build up and hog all CPU time
Summary: kio_http processes build up and hog all CPU time
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-07 03:53 UTC by Jim Petersen
Modified: 2005-11-01 13:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Petersen 2003-05-07 03:53:39 UTC
Version:            (using KDE KDE 3.1.1)
Installed from:    SuSE RPMs
Compiler:          3.3 20030226 (prerelease) (SuSE Linux) 
OS:          Linux

I haven't noticed this problem until I just did a fresh install of SuSE 8.2; 8.1 didn't ever exhibit this problem for me.

In either Konqueror or Kmail, intermittently, about 5-7 kio_http processes (all showing as "running" in ksysguard) will hog almost 100% of CPU resources.  Closing Konqueror or Kmail doesn't fix the problem; the kio_http processes hang around and must be killed manually in ksysguard.  xosview shows 100% CPU utilization while this bug manifests itself.

I've listed this bug as "crash" status because it effectively crashes the system--response is slow to the point of the system being useless until the processes are killed.

No particular website seems to exhibit the problem; it seems quite random.  I can give specifics about my setup though:

Konqueror--nothing special except using an HTTP proxy of 127.0.0.1, port 8000 (Guidescope, an ad-banner remover, running as user "nobody").

Kmail--I have it set up to do a regular login via POP3, and download messages, but leave the messages on the server.  Maybe that has something to do with the problem?
Comment 1 Waldo Bastian 2003-05-07 18:38:37 UTC
Subject: kdelibs/kioslave/http [POSSIBLY UNSAFE]

CVS commit by waba: 

CCMAIL: 58197-done@bugs.kde.org
Catch EOF while receiving HTTP header.


  M +1 -1      http.cc   1.571 [POSSIBLY UNSAFE: gets]


--- kdelibs/kioslave/http/http.cc  #1.570:1.571
@@ -3069,5 +3069,5 @@ bool HTTPProtocol::readHeader()
     memset(buffer, 0, sizeof(buffer));
 
-  } while ((len || noHeader) && (headerSize < maxHeaderSize) && (gets(buffer, sizeof(buffer)-1)));
+  } while (!m_bEOF && (len || noHeader) && (headerSize < maxHeaderSize) && (gets(buffer, sizeof(buffer)-1)));
 
 


Comment 2 paul 2005-08-04 12:27:03 UTC
Is this supposedly fixed in KDE 3.4? I experience the same problem, but it seems to happen repeatably after visiting https pages in Konqueror.
Comment 3 paul 2005-11-01 13:20:48 UTC
#102925 seems to have a resolution.
Comment 4 Stephan Kulow 2005-11-01 13:24:08 UTC
I fixed at least 2 endless loops for 3.5