Commit f67fe80e authored by unknown's avatar unknown
Browse files

connect timeout bug fix


libmysql/libmysql.c:
  This is a fix for a bug in connect_timeout.
  
  This bug manifested itself on operating systems that do support poll() 
  system call, which resulted in a timeout twice the value specified.
  
  That is because timeout executed on both select() and poll().
parent 032e09cc
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -175,6 +175,9 @@ static int connect2(my_socket s, const struct sockaddr *name, uint namelen,
   * implementations of select that don't adjust tv upon
   * failure to reflect the time remaining
   */
#ifdef HAVE_POLL
  return(0);
#endif
  start_time = time(NULL);
  for (;;)
  {