I am using the Socket module to read and write messages over a network. When sending and recieving small chunks of data, everything functions, but when large chunks of data are requested, the program crashes halfway through recieving the data with message - "Out of memory!". I know that the linux box that I am running this on is NOT out of memory (you can see by running "gtop").
I have tried stepping through the script with the debugger, and the program is always crashing when it tries to pick up the fileHandle with a socket assigned to it, just after it attempts to recieve a large chunk of data.
It's as if it has looses the Socket during the large data transmission, then reports Out of Memory! next time I try to get the fileHandle for somthing else.
Any suggestions?
(using Perl 5.005_03 for i386_linux)