Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #85156
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <philosganga@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.011 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'json': 0.07; 'socket': 0.07; 'mail:': 0.09; 'pages.': 0.09; 'subject:How': 0.10; 'cc:addr :python-list': 0.11; 'python': 0.11; 'formatted': 0.16; 'improper': 0.16; 'sockets': 0.16; 'subject:non': 0.16; 'prevent': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'discussion': 0.18; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'certainly': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; '>': 0.26; 'second': 0.26; 'post': 0.26; 'header:In-Reply- To:1': 0.27; 'external': 0.29; '[1]': 0.29; '[2]': 0.30; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'url:python': 0.33; 'maybe': 0.34; 'problem': 0.35; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'done': 0.36; 'url:listinfo': 0.36; 'doing': 0.36; "didn't": 0.36; 'thanks': 0.36; 'url:org': 0.36; 'url:library': 0.38; 'enough': 0.39; 'url:mail': 0.40; 'most': 0.60; 'full': 0.61; 'browser': 0.61; 'email addr:gmail.com': 0.63; 'taking': 0.65; '2015': 0.84; 'grabbing': 0.84; 'subject:skip:S 20': 0.91; 'skip:y 40': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=72WFiuAvpJEozvxnJHljRRDfbUyFScPaCSxsJaefM9c=; b=HLb8SxEUWNz4/xiooJQm/eAHMiVg63ejWO2IeKus+I439At/e4qZyySkx7SHgI343T ZhJacu7Fn3HDzeUR0y2hsQUWU/NnuHIZ3vjCkvFtB5JuJ0UJVhqSaJgSG6onGLxeVuVp CxXWJ4X+7L/m8cr/auspfz2x92txUZ3TfMcTnmhRdfyfRh2svB/4vM/o7gQu5h3add6d P6nT/ehhEKNQoaRbdsniJ+6I+tsX6Ofup3nHbqk1uylmuOPCxtm/8ABFC5efhNiAjbMp S5eNhkhXvRGb0HpQ8R22WuuPnd4oN4I7kp3uSpAwijIM518Hv56q7V85QKd7RLe120EY 9Kmw== |
| MIME-Version | 1.0 |
| X-Received | by 10.112.67.41 with SMTP id k9mr25124568lbt.35.1422975827554; Tue, 03 Feb 2015 07:03:47 -0800 (PST) |
| In-Reply-To | <3b558129-df61-4a3d-9cca-17e5340c33a3@googlegroups.com> |
| References | <mailman.18397.1422871634.18130.python-list@python.org> <47031e69-e94d-4257-8c7d-e7c00a543634@googlegroups.com> <874mr3ibve.fsf@elektro.pacujo.net> <c0e17d52-4978-48fd-8848-30426ea42e14@googlegroups.com> <mailman.18420.1422960897.18130.python-list@python.org> <b6cb0fcb-9934-41b6-a8f6-902d26f2588c@googlegroups.com> <mailman.18421.1422961678.18130.python-list@python.org> <87r3u7grd3.fsf@elektro.pacujo.net> <e6d081df-1db0-41a3-905c-e3c2845d5dda@googlegroups.com> <mailman.18427.1422973045.18130.python-list@python.org> <3b558129-df61-4a3d-9cca-17e5340c33a3@googlegroups.com> |
| Date | Tue, 3 Feb 2015 16:03:47 +0100 |
| Subject | Re: How to write a non blocking SimpleHTTPRequestHandler ? |
| From | Filadelfo Fiamma <philosganga@gmail.com> |
| To | Yassine Chaouche <yacinechaouche@yahoo.com.dmarc.invalid> |
| Content-Type | multipart/alternative; boundary=001a11349cb4b9b4a3050e3060df |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.18431.1422975829.18130.python-list@python.org> (permalink) |
| Lines | 84 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1422975829 news.xs4all.nl 2832 [2001:888:2000:d::a6]:35941 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:85156 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
I think You can try the asyncore lib: https://docs.python.org/2/library/asyncore.html 2015-02-03 15:50 GMT+01:00 Yassine Chaouche < yacinechaouche@yahoo.com.dmarc.invalid>: > On Tuesday, February 3, 2015 at 3:17:37 PM UTC+1, Amirouche Boubekki wrote: > > What you want is to prevent the socket to wait indefinetly for data > (based on strace output) which is done with socket.setblocking/settimeout > [1] > > Exactly ! thanks for taking time to reading my original post a second > time. Maybe I didn't express my problem well enough and the discussion has > maybe drifted to an XYProblem type discussion :) > > I was about to say that most webframeworks for python already take care of > the problem I'm facing, so I certainly confused people with improper > formulation. > > > There is contentbrowser [2] which is somekind of web proxy. > > It's using werkzeug and it seems to be a full web application. I just want > something that is right above sockets and selects. All that my script is > doing is grabbing some json data from an external url provided by the > browser and return a formatted page showing the json data in human-readable > HTML pages. Nothing fancy. > > -- > https://mail.python.org/mailman/listinfo/python-list > -- Filadelfo Fiamma mail: philosganga@gmail.com
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: How to write a non blocking SimpleHTTPRequestHandler ? Amirouche Boubekki <amirouche.boubekki@gmail.com> - 2015-02-02 10:07 +0000
Re: How to write a non blocking SimpleHTTPRequestHandler ? Yassine Chaouche <yacinechaouche@yahoo.com> - 2015-02-03 01:08 -0800
Re: How to write a non blocking SimpleHTTPRequestHandler ? Marko Rauhamaa <marko@pacujo.net> - 2015-02-03 11:27 +0200
Re: How to write a non blocking SimpleHTTPRequestHandler ? Yassine Chaouche <yacinechaouche@yahoo.com> - 2015-02-03 02:47 -0800
Re: How to write a non blocking SimpleHTTPRequestHandler ? Chris Angelico <rosuav@gmail.com> - 2015-02-03 21:54 +1100
Re: How to write a non blocking SimpleHTTPRequestHandler ? Yassine Chaouche <yacinechaouche@yahoo.com> - 2015-02-03 03:04 -0800
Re: How to write a non blocking SimpleHTTPRequestHandler ? Chris Angelico <rosuav@gmail.com> - 2015-02-03 22:07 +1100
Re: How to write a non blocking SimpleHTTPRequestHandler ? Yassine Chaouche <yacinechaouche@yahoo.com> - 2015-02-03 03:23 -0800
Re: How to write a non blocking SimpleHTTPRequestHandler ? Marko Rauhamaa <marko@pacujo.net> - 2015-02-03 13:35 +0200
Re: How to write a non blocking SimpleHTTPRequestHandler ? Yassine Chaouche <yacinechaouche@yahoo.com> - 2015-02-03 04:56 -0800
Re: How to write a non blocking SimpleHTTPRequestHandler ? Marko Rauhamaa <marko@pacujo.net> - 2015-02-03 15:45 +0200
Re: How to write a non blocking SimpleHTTPRequestHandler ? Chris Angelico <rosuav@gmail.com> - 2015-02-04 01:03 +1100
Re: How to write a non blocking SimpleHTTPRequestHandler ? Marko Rauhamaa <marko@pacujo.net> - 2015-02-03 16:20 +0200
Re: How to write a non blocking SimpleHTTPRequestHandler ? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2015-02-03 20:25 -0500
Re: How to write a non blocking SimpleHTTPRequestHandler ? Chris Angelico <rosuav@gmail.com> - 2015-02-04 00:21 +1100
Re: How to write a non blocking SimpleHTTPRequestHandler ? Amirouche Boubekki <amirouche.boubekki@gmail.com> - 2015-02-03 14:09 +0000
Re: How to write a non blocking SimpleHTTPRequestHandler ? Yassine Chaouche <yacinechaouche@yahoo.com> - 2015-02-03 06:50 -0800
Re: How to write a non blocking SimpleHTTPRequestHandler ? Filadelfo Fiamma <philosganga@gmail.com> - 2015-02-03 16:03 +0100
Re: How to write a non blocking SimpleHTTPRequestHandler ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-03 16:39 +0000
Re: How to write a non blocking SimpleHTTPRequestHandler ? Yassine Chaouche <yacinechaouche@yahoo.com> - 2015-02-08 06:13 -0800
Re: How to write a non blocking SimpleHTTPRequestHandler ? Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-02-03 12:10 +0000
csiph-web