From d16b513f1c9754ab3aab415a7eb6945ae10f3174 Mon Sep 17 00:00:00 2001 From: Ippolitov A. Igor Date: Mon, 26 Oct 2015 13:29:16 +0300 Subject: sql search connection is opened and closed each time --- src/main/java/com/juick/http/www/Main.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/juick') diff --git a/src/main/java/com/juick/http/www/Main.java b/src/main/java/com/juick/http/www/Main.java index faf334c9..1cc813c9 100644 --- a/src/main/java/com/juick/http/www/Main.java +++ b/src/main/java/com/juick/http/www/Main.java @@ -73,7 +73,7 @@ public class Main extends HttpServlet implements Stream.StreamListener { Class.forName("com.mysql.jdbc.Driver"); sql = DriverManager.getConnection("jdbc:mysql://localhost/juick?autoReconnect=true&user=" + conf.getProperty("mysql_username", "") + "&password=" + conf.getProperty("mysql_password", "")); - sqlSearch = getSqlSearch(); + sqlSearch = null; // init this on search, timeout is too low setupXmppComponent(conf.getProperty("xmpp_password")); -- cgit v1.2.3