it looks as if the mysql server is either going down or timing out, this may be insightful > http://dev.mysql.com/doc/refman/5.0/en/gone-away.html
how big are the files that you are sending over?
You can also get these errors if you send a query to the server that is incorrect or too large. If mysqld receives a packet that is too large or out of order, it assumes that something has gone wrong with the client and closes the connection. If you need big queries (for example, if you are working with big BLOB columns), you can increase the query limit by setting the server's max_allowed_packet variable, which has a default value of 1MB. You may also need to increase the maximum packet size on the client end. More information on setting the packet size is given inSection C.5.2.10, “Packet too large”.
and for the record my default value for the above is about 8M
Thanks for your response.
My file transmission is nowhere related to mysql. It's a simple Amazon S3 file transfer via my own oxwall plugin. The size of the file is around 13MB. The actual file transmission happens correctly. But after that I get this error.
Do you think its related to mysql although I am not involving mysql server for the file transmission?
You can also get these errors if you send a query to the server that is incorrect or too large. If mysqld receives a packet that is too large or out of order, it assumes that something has gone wrong with the client and closes the connection. If you need big queries (for example, if you are working with big BLOB columns), you can increase the query limit by setting the server's max_allowed_packet variable, which has a default value of 1MB. You may also need to increase the maximum packet size on the client end. More information on setting the packet size is given inSection C.5.2.10, “Packet too large”.
also what is the default value in your my.cnf (usually located at /etc/my.cnf)
As per your advice I set mysql_query('SET SESSION max_allowed_packet=16*1024*1024') in my upload script.
But that did not help.
also you could try the mysql support forums
; Maximum time (in seconds) for connect timeout. -1 means no limitmysql.connect_timeout = 10
not sure if that would help?