[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5234 - GNUnet/src/applications/sqstore_mysql
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5234 - GNUnet/src/applications/sqstore_mysql |
Date: |
Wed, 4 Jul 2007 17:23:43 -0600 (MDT) |
Author: grothoff
Date: 2007-07-04 17:23:43 -0600 (Wed, 04 Jul 2007)
New Revision: 5234
Modified:
GNUnet/src/applications/sqstore_mysql/mysql.c
Log:
set read/write timeouts
Modified: GNUnet/src/applications/sqstore_mysql/mysql.c
===================================================================
--- GNUnet/src/applications/sqstore_mysql/mysql.c 2007-07-04 22:38:54 UTC
(rev 5233)
+++ GNUnet/src/applications/sqstore_mysql/mysql.c 2007-07-04 23:23:43 UTC
(rev 5234)
@@ -359,7 +359,8 @@
" value BLOB NOT NULL DEFAULT '',"
" INDEX (hash(64)),"
" INDEX (prio),"
- " INDEX (expire)"
+ " INDEX (expire),"
+ " INDEX (expire,anonLevel,type)"
") TYPE=InnoDB");
if (mysql_error(dbhI->dbf)[0]) {
LOG_MYSQL(GE_ERROR | GE_ADMIN | GE_BULK,
@@ -494,8 +495,11 @@
dbhI->ubind[3].buffer_type = MYSQL_TYPE_BLOB;
dbhI->ubind[4].buffer_type = MYSQL_TYPE_BLOB;
dbhI->prepare = YES;
- } else
+ } else {
dbhI->prepare = NO;
+ mysql_query(dbhI->dbf,
+ "SET SESSION net_read_timeout=28800, SESSION
net_write_timeout=28800");
+ }
dbhI->valid = YES;
return OK;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5234 - GNUnet/src/applications/sqstore_mysql,
gnunet <=