Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

non-blocking connect and EAGAIN

From: Dmitriy MiksIr <miksir(at)maker.ru>
Date: Tue Sep 18 2007 - 13:26:28 EDT


Hello!
I got a lot of mysql errors "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (11)".

I trace one of this error and see, what non-blocking connect return EAGAIN. See:
fcntl64(3, F_SETFL, O_RDWR|O_NONBLOCK) = 0 connect(3, {sa_family=AF_FILE, path="/var/lib/mysql/mysql.sock"}, 110) =
-1 EAGAIN (Resource temporarily unavailable)

Mysql's connect do not detect this error:

   if ((res != 0) && (s_err != EINPROGRESS))    {

     errno= s_err;                       /* Restore it */
     return(-1);

   }

Is this kernel bug (Linux 2.6.16-std26-smp-alt1)?... which return EAGAIN instead of EINPROGRESS, or some other troubles can force EAGAIN on unix socket connect?

--

MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals?unsub=lists@pantek.com Received on Tue Sep 18 13:40:31 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:59:30 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library