I wrote a script that updates itself via socket when a new version is available, but i'm running into a couple of problems.
I use /sockread to store the data into a &binvar, and write it to a temp file.
It seems that the download is *really* slow (it takes more than 3 minutes to write 210kb) and also it stops writing the temp file at a random percentage (usually between 75-99%).

So i'm wondering what might be wrong with it since the script basically works, untill it just stops to write the file. And also i would like to know if it's normal that it takes so long for such a few kb of data.
Thanks in advance!