Skip to content

Update blog.py#1256

Closed
liyang1009 wants to merge 2 commits intotornadoweb:masterfrom
liyang1009:patch-1
Closed

Update blog.py#1256
liyang1009 wants to merge 2 commits intotornadoweb:masterfrom
liyang1009:patch-1

Conversation

@liyang1009
Copy link
Copy Markdown

if this global is close or down create an new one

if this global is close  or  down  create an new one
if the  global connection is close  or  exception  create the new one
@bdarnell
Copy link
Copy Markdown
Member

How would the database attribute ever be None? It's unconditionally created at startup, and torndb will reconnect on failure (even if it didn't, there's nothing to set the attribute to None on failure).

@liyang1009
Copy link
Copy Markdown
Author

sorry,i'm fault! i have see the reconnect in torndb

@bdarnell bdarnell closed this Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants