mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
timeout could be None.
This commit is contained in:
parent
6c405b9d14
commit
a57e2ec7e6
@ -1,5 +1,8 @@
|
||||
# Django settings for djangotest project.
|
||||
|
||||
import platform
|
||||
PRODUCTION_MODE = platform.node().startswith('http')
|
||||
|
||||
DEBUG = True
|
||||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
|
||||
@ -80,7 +80,7 @@ def write(sock, data):
|
||||
|
||||
def write_nonblock(sock, data):
|
||||
timeout = sock.gettimeout()
|
||||
if sock.gettimeout() > 0.0:
|
||||
if timeout != 0.0:
|
||||
try:
|
||||
sock.setblocking(0)
|
||||
return write(sock, data)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user