Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #108685
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Daniel Bradburn <moagstar@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: gevent |
| Date | Mon, 16 May 2016 18:49:42 +0000 |
| Lines | 111 |
| Message-ID | <mailman.28.1463425305.19823.python-list@python.org> (permalink) |
| References | <CACwCsY5Bjk5470GMSzEiNVFDcKp9Ef_wr-jkADqeFX5A3MCueA@mail.gmail.com> <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> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de XIYGAcamOfND+eGAT52MIgGMB+gPx/Ezm7FH6aDbE5Jw== |
| Return-Path | <moagstar@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; '16,': 0.03; 'broken': 0.03; 'error:': 0.05; "'',": 0.07; 'false,': 0.07; 'list?': 0.07; '(1,': 0.09; 'python': 0.10; 'python.': 0.11; "skip:' 30": 0.15; "'w'": 0.16; '2016': 0.16; 'async': 0.16; 'googled': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'time-out': 0.16; 'url:foo': 0.16; 'url:success': 0.16; 'wrote:': 0.16; 'skip:{ 20': 0.18; 'try:': 0.18; '>': 0.18; 'email addr:gmail.com>': 0.18; 'library': 0.20; 'fix': 0.21; 'posted': 0.21; 'to:2**1': 0.21; 'fairly': 0.22; 'either.': 0.22; 'gateway': 0.22; 'occurs': 0.22; 'pipe': 0.22; "skip:' 40": 0.22; 'pass': 0.22; 'seems': 0.23; 'daniel': 0.23; 'this:': 0.23; 'import': 0.24; '(most': 0.24; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'requests': 0.25; 'wondering': 0.25; 'example': 0.26; 'error': 0.27; 'question': 0.27; 'message-id:@mail.gmail.com': 0.27; 'this.': 0.28; "skip:' 10": 0.28; 'larry': 0.29; 'workaround': 0.29; "i'm": 0.30; 'server.': 0.30; 'url:mailman': 0.30; 'query': 0.30; 'skip:s 30': 0.31; 'post': 0.31; 'anyone': 0.32; 'skip:_ 10': 0.32; 'posting': 0.32; 'getting': 0.33; 'url:python': 0.33; 'though.': 0.33; 'traceback': 0.33; 'url:listinfo': 0.34; "skip:' 20": 0.34; 'file': 0.34; 'except': 0.34; 'server': 0.34; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'could': 0.35; 'skip:" 50': 0.35; 'skip:& 60': 0.35; 'widely': 0.35; 'community': 0.36; 'but': 0.36; 'list,': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'heard': 0.36; 'mode': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'client': 0.37; 'wanted': 0.37; 'received:209': 0.38; 'skip:p 20': 0.38; 'mailing': 0.38; 'google': 0.39; 'why': 0.39; 'does': 0.39; "didn't": 0.39; 'url:mail': 0.40; 'to:addr:python.org': 0.40; 'where': 0.40; 'personally': 0.61; 'further': 0.62; 'is.': 0.63; 'places': 0.64; 'here': 0.66; 'afraid': 0.67; 'skip:\xc2 10': 0.67; 'saw': 0.77; 'main:': 0.84; 'bounce': 0.91; 'email addr:googlegroups.com': 0.95 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=3MbuoSGt3bTOA+/y6QLCiz4lF7chflD3lwSZpvbRxhs=; b=Qg6K1kO+laAkIauM5NqHgOm2bn8tfH5I17VZLcnlJCVKh9H5qks9TigG0kZjYSeJFq ycugB6MvDhJX7NMeTyqsorDXu+u9GllFsoSrm4uLbBpH64/ek0odeKecwfLeApqvQgY6 e9QyBqFds4Z2QaefdLyjhqE3DZDJCgdmg8uMJdT6t+xMnrFJ1C1f/JV7fqyrSUoyzd/s St3cn1/nXMgUpylZiX8mIthVtXILt7qXHQMlxuULGe+kh2fz1IfPQpbFkAhdCMPkCPx6 /XB6myLTBe+Z3Pixlpwc6a0wNbqEE54tZMV8i2m+mKGGsrCsXGwAU9ROxPPgOwUzLOg/ HaXA== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=3MbuoSGt3bTOA+/y6QLCiz4lF7chflD3lwSZpvbRxhs=; b=LYIMQroKiFRA2rBpaIBZy0qJNsGm5sVoViI9MroQcu8VJ9sDOIBGTinNDPNXkqddpt EYKx9TNhu/WMY9JTPui7hLFdAze5bhtb88JV+74Dv4GxUnCfbIYLI37ah54fq1Ecp3+0 smzK4REbGbUC96DGfqjVAtrwT1Svc6nbNiJlw8jUEQFF0WMEHPPlOELIQZLZVHv3xLDG c+P+2vHuRiMdI/0cnFu99VC7Q/yPId6RvE0Na1DxsqK6VDaxv0ZOhJlb2p2GjNydmOaK wkYs2xr4tWAYYTuaHkRWzWcX8b7/2J4GIwhTkKHC5Ll8gfVdE+6v+mZ0qfUs1t/Uk5hR uHcg== |
| X-Gm-Message-State | AOPr4FW9iB1Yx+mpznwcoyY0+xEDVodrQATzgR0CbodLaoZtpCwH5zb7t0jGxIP75L5dan5hYN8+e+pAApXc8g== |
| X-Received | by 10.112.59.229 with SMTP id c5mr1656840lbr.143.1463424592053; Mon, 16 May 2016 11:49:52 -0700 (PDT) |
| In-Reply-To | <CACwCsY5cw=-_zyNg_ohbJZPQcZHWSdhKkvW3n0A9qxXf_tO4TA@mail.gmail.com> |
| X-Mailman-Approved-At | Mon, 16 May 2016 15:01:43 -0400 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.22 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| X-Mailman-Original-Message-ID | <CAO-QhwvL=3PoZR25EdfZSnsCA-3=tEAw14=c-QLCigCLhEbkiQ@mail.gmail.com> |
| X-Mailman-Original-References | <CACwCsY5Bjk5470GMSzEiNVFDcKp9Ef_wr-jkADqeFX5A3MCueA@mail.gmail.com> <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> |
| Xref | csiph.com comp.lang.python:108685 |
Show key headers only | View raw
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