mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 03:47:17 +02:00
Merge trift2.:/MySQL/M51/clone-5.1
into trift2.:/MySQL/M51/push-5.1 extra/yassl/src/handshake.cpp: Auto merged extra/yassl/src/template_instnt.cpp: Auto merged extra/yassl/src/yassl_imp.cpp: Auto merged scripts/make_binary_distribution.sh: Auto merged sql/handler.cc: Auto merged sql/log_event.cc: Auto merged
This commit is contained in:
commit
d509d8324d
4 changed files with 19 additions and 9 deletions
|
|
@ -62,7 +62,7 @@ SocketOutputStream::print(const char * fmt, ...){
|
|||
|
||||
if(ret >= 0)
|
||||
m_timeout_remain-=time;
|
||||
if(errno==ETIMEDOUT || m_timeout_remain<=0)
|
||||
if((ret < 0 && errno==ETIMEDOUT) || m_timeout_remain<=0)
|
||||
{
|
||||
m_timedout= true;
|
||||
ret= -1;
|
||||
|
|
@ -84,7 +84,7 @@ SocketOutputStream::println(const char * fmt, ...){
|
|||
|
||||
if(ret >= 0)
|
||||
m_timeout_remain-=time;
|
||||
if (errno==ETIMEDOUT || m_timeout_remain<=0)
|
||||
if ((ret < 0 && errno==ETIMEDOUT) || m_timeout_remain<=0)
|
||||
{
|
||||
m_timedout= true;
|
||||
ret= -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue