From c639881f5d31fee84c3efec048c2fee2b44276d8 Mon Sep 17 00:00:00 2001 From: Jervin R Date: Tue, 4 Nov 2014 22:17:02 -0500 Subject: [PATCH] Set non-infinite read/write timeout values --- _mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_mysql.c b/_mysql.c index 5b81c79d..dee05b4e 100644 --- a/_mysql.c +++ b/_mysql.c @@ -573,8 +573,8 @@ _mysql_ConnectionObject_Initialize( NULL } ; int connect_timeout = 0; #ifdef HAVE_MYSQL_OPT_TIMEOUTS - int read_timeout = 0; - int write_timeout = 0; + int read_timeout = 30; + int write_timeout = 60; #endif int compress = -1, named_pipe = -1, local_infile = -1; char *init_command=NULL,