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/base_async.py”, line 65, in handle
util.reraise(*sys.exc_info())
File “/usr/local/lib/python3.6/site-packages/gunicorn/util.py”, line 625, in reraise
raise value
File “/usr/local/lib/python3.6/site-packages/gunicorn/workers/base_async.py”, line 48, in handle
req = next(parser)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/parser.py”, 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/message.py”, line 186, in __init__
super().__init__(cfg, unreader)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/message.py”, line 53, in __init__
unused = self.parse(self.unreader)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/message.py”, line 198, in parse
self.get_data(unreader, buf, stop=True)
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/message.py”, line 189, in get_data
data = unreader.read()
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/unreader.py”, line 37, in read
d = self.chunk()
File “/usr/local/lib/python3.6/site-packages/gunicorn/http/unreader.py”, line 64, in chunk
return self.sock.recv(self.mxchunk)
File “/usr/local/lib64/python3.6/site-packages/gevent/_ssl3.py”, line 555, in recv
return self.read(buflen)
File “/usr/local/lib64/python3.6/site-packages/gevent/_ssl3.py”, line 386, in read
return self._sslobj.read(nbytes or 1024)
File “/usr/lib64/python3.6/ssl.py”, line 589, in read
v = self._sslobj.read(len)
OSError: [Errno 0] Error
Solution.
gunicorn cannot support both http and https requests

I have changed from gunicorn to uwsgi and no more headaches!!!
Link:
https://stackoverflow.com/questions/51619559/socket-error-processing-request-with-flask-gunicorn-docker-and-azure

Read More: