Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005410 [Squeak Packages] KomHttpServer feature always 11-13-06 22:27 10-24-07 11:11
Reporter anselm View Status public  
Assigned To gcorriga
Priority normal Resolution open Platform
Status assigned   OS
Projection none   OS Version
ETA none Product Build
Summary 0005410: Memory exhaustion
Description Take a fresh seaside installation, start wakom server e.g. on port 8080 with "WaKom startOn: 8080" and use netcat to spam the server: "yes | nc localhost 8080". Squeak won't stop receiving data and the image will grow, and grow, and grow ...
After some time there will be an out-of-memory warning. I'm not sure that this will finally crash Squeak, but it definitely exhausts memory at makes the system slow which is not very nice. With some time this can be done from a single connection.
Other servers close connection or throw away data if it is forseeable that no serious client request is made.
Steps To Reproduce
Additional Information This is not necessarily a bug in Seaside. Maybe a design flaw. The problem may also lay in WaKom or SocketStream.
Some of the next* methods in SocketStream are also dangerous. They receive until a delimiter is reached, not caring about the buffer size which will just grow continously.
Attached Files

- Relationships

- Notes
(0011370 - 288 - 288 - 288 - 288 - 288 - 288)
10-24-07 11:11

HTTP 1.1 allows a server to shut down a request with a 413 status code if the representation in the request is too large for the server's settings. Now, this should probably be a developer's decision, but KomHttpServer could have some support code to make things easier for the developer.

- Issue History
Date Modified Username Field Change
11-13-06 22:27 anselm New Issue
03-19-07 14:54 KenCausey Category Seaside => Comanche
10-23-07 17:44 KenCausey Category Comanche => KomHttpServer
10-23-07 20:53 KenCausey Status new => assigned
10-23-07 20:53 KenCausey Assigned To  => gcorriga
10-24-07 11:11 gcorriga Note Added: 0011370

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
37 total queries executed.
31 unique queries executed.
Powered by Mantis Bugtracker