Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108685
| From | Daniel Bradburn <moagstar@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: gevent |
| Date | 2016-05-16 18:49 +0000 |
| Message-ID | <mailman.28.1463425305.19823.python-list@python.org> (permalink) |
| References | (1 earlier) <CAO-QhwvqSc2cZ5NKJyNFd6oOX-iWmQJje+s5RVpWC2PFhUei+w@mail.gmail.com> <CAO-QhwvjCzBfC8_KBVfnCwNm8dPk66_v5Gzm9yEt3dYcVM-AuQ@mail.gmail.com> <CAO-Qhwtuz9RKDsQ+UncVPvy=JrODAmehyHiDJJa9ZsLn7BeeJQ@mail.gmail.com> <CACwCsY5cw=-_zyNg_ohbJZPQcZHWSdhKkvW3n0A9qxXf_tO4TA@mail.gmail.com> <CAO-QhwvL=3PoZR25EdfZSnsCA-3=tEAw14=c-QLCigCLhEbkiQ@mail.gmail.com> |
Hi Larry,
I'm afraid I don't have any experience using gevent with wsgi, perhaps you
could try posting directly on the Google group
https://groups.google.com/forum/#!forum/gevent
On Mon, 16 May 2016, 20:28 Larry Martell, <larry.martell@gmail.com> wrote:
> I don't see it either. I posted it twice - May 3 and May 14. I did it
> from email - does that group not accept email postings? I didn't get a
> bounce though.
>
> Here is my post:
>
> I have a python server that has this in the main:
>
> from gevent import pywsgi
>
> try:
> httpd = pywsgi.WSGIServer(('0.0.0.0', 8000), app)
> httpd.serve_forever()
> except KeyboardInterrupt:
> pass
>
> Recently we began getting HTTPError: 504 Server Error: Gateway
> Time-out on requests to the server. Looking in the logs I saw this:
>
> Traceback (most recent call last):
> File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line
> 508, in handle_one_response
> self.run_application()
> File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line
> 495, in run_application
> self.process_result()
> File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line
> 486, in process_result
> self.write(data)
> File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line
> 380, in write
> self._write_with_headers(data)
> File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line
> 400, in _write_with_headers
> self._sendall(towrite)
> File "/usr/local/lib/python2.7/dist-packages/gevent/pywsgi.py", line
> 355, in _sendall
> self.socket.sendall(data)
> File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line
> 460, in sendall
> data_sent += self.send(_get_memory(data, data_sent), flags)
> File "/usr/local/lib/python2.7/dist-packages/gevent/socket.py", line
> 437, in send
> return sock.send(data, flags)
> error: [Errno 32] Broken pipe
> {'GATEWAY_INTERFACE': 'CGI/1.1',
> 'HTTP_ACCEPT': '*/*',
> 'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
> 'HTTP_CONNECTION': 'close',
> 'HTTP_HOST': 'foo.bar.com',
> 'HTTP_USER_AGENT': 'python-requests/2.9.1',
> 'HTTP_X_FORWARDED_FOR': '192.168.10.5',
> 'HTTP_X_REAL_IP': '192.168.10.5',
> 'PATH_INFO': '/readings',
> 'QUERY_STRING': 'target=2225217193085335062&tool=HM',
> 'REMOTE_ADDR': '172.17.42.1',
> 'REMOTE_PORT': '41708',
> 'REQUEST_METHOD': 'GET',
> 'SCRIPT_NAME': '',
> 'SERVER_NAME': 'fdffcd119506',
> 'SERVER_PORT': '8000',
> 'SERVER_PROTOCOL': 'HTTP/1.0',
> 'SERVER_SOFTWARE': 'gevent/1.0 Python/2.7',
> 'wsgi.errors': <open file '<stderr>', mode 'w' at 0x7f4c299bc1e0>,
> 'wsgi.input': <gevent.pywsgi.Input object at 0x7f4c19e55210>,
> 'wsgi.multiprocess': False,
> 'wsgi.multithread': False,
> 'wsgi.run_once': False,
> 'wsgi.url_scheme': 'http',
> 'wsgi.version': (1, 0)} failed with error
>
> Once this occurs it seems that no further requests are served. I
> googled this and found many places where people said this was
> happening, and many places where people explained why it was
> happening, but no place did I find a way to fix or workaround this.
>
> Does anyone know how to get it to continue processing after this occurs?
>
> On Mon, May 16, 2016 at 2:15 PM, Daniel Bradburn <moagstar@gmail.com>
> wrote:
> > Hi Larry
> >
> > When did you post the query to the gevent list? I don't see it on
> > gevent@googlegroups.com
> >
> > My perception is that gevent is fairly widely used although I don't have
> any
> > stats, see for example http://www.gevent.org/success.html. Personally
> it is
> > my go to library whenever I need async networking in python.
> >
> > What was the question you wanted answering?
> >
> > On 16 May 2016 7:39 p.m., "Larry Martell" <larry.martell@gmail.com>
> wrote:
> >>
> >> Does anyone here use gevent? I posted a question on the gevent mailing
> >> list, here, and on SO and did not get any replies on any of them. I
> >> have a client that is using it - I had never heard of it before, and
> >> now I am wondering how big the user base and community is.
> >> --
> >> https://mail.python.org/mailman/listinfo/python-list
>
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: gevent Daniel Bradburn <moagstar@gmail.com> - 2016-05-16 18:49 +0000
csiph-web