Gunicorn Flask Error: [ERROR] Socket error processing request

gunicorn、flask error: [ERROR] Socket error processing request, The detailed error message is as follows.
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/gunicorn/workers/”, line 65, in handle
File “/usr/local/lib/python3.6/site-packages/gunicorn/”, line 625, in reraise
raise value
File “/usr/local/lib/python3.6/site-packages/gunicorn/workers/”, line 48, in handle
req = next(parser)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/”, line 41, in __next__
self.mesg = self.mesg_class(self.cfg, self.unreader, self.req_count)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/”, line 186, in __init__
super().__init__(cfg, unreader)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/”, line 53, in __init__
unused = self.parse(self.unreader)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/”, line 198, in parse
self.get_data(unreader, buf, stop=True)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/”, line 189, in get_data
data =
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/”, line 37, in read
d = self.chunk()
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/”, line 64, in chunk
return self.sock.recv(self.mxchunk)
File “/usr/local/lib64/python3.6/site-packages/gevent/”, line 555, in recv
File “/usr/local/lib64/python3.6/site-packages/gevent/”, line 386, in read
return or 1024)
File “/usr/lib64/python3.6/”, line 589, in read
v =
OSError: [Errno 0] Error
gunicorn cannot support both http and https requests

I have changed from gunicorn to uwsgi and no more headaches!!!

Read More: