0e0862dd by 周伟奇

fix redis max_conn

1 parent 75758276
......@@ -41,7 +41,7 @@ def url_to_parts(url):
class Redis:
def __init__(self, url, connection_pool=None, max_connections=10, socket_timeout=120,
def __init__(self, url, connection_pool=None, max_connections=20, socket_timeout=120,
retry_on_timeout=None, socket_connect_timeout=None):
self._ConnectionPool = connection_pool
scheme, host, port, _, password, path, query = url_to_parts(url)
......
import pyodbc
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=47.97.220.40;UID=SA;PWD=19951019Mssql', autocommit=True)
cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;UID=SA;PWD=pwd', autocommit=True)
cursor = cnxn.cursor()
cursor.execute("create database afc")
......@@ -436,7 +436,7 @@ afc_sql = """
on afc_doc (application_id, status);
"""
hil_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=47.97.220.40;DATABASE=hil;UID=SA;PWD=pwd', autocommit=True)
hil_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;DATABASE=hil;UID=SA;PWD=pwd', autocommit=True)
hil_cursor = hil_cnxn.cursor()
hil_cursor.execute(hil_sql_1)
......@@ -445,7 +445,7 @@ hil_cursor.execute(hil_sql_2)
hil_cursor.close()
hil_cnxn.close()
afc_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=47.97.220.40;DATABASE=afc;UID=SA;PWD=pwd', autocommit=True)
afc_cnxn = pyodbc.connect('DRIVER={ODBC Driver 17 for SQL Server};SERVER=localhost;DATABASE=afc;UID=SA;PWD=pwd', autocommit=True)
afc_cursor = afc_cnxn.cursor()
afc_cursor.execute(afc_sql)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!