Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Py3k and asyncore/asynchat

Received: by 10.35.37.18 with SMTP id p18mr8202840pyj.6.1206931498607;
        Sun, 30 Mar 2008 19:44:58 -0700 (PDT)
Return-Path: <python-dev-bounces+python-dev2-garchive-22421=googlegroups....@python.org>
Received: from smtp-vbr3.xs4all.nl (smtp-vbr3.xs4all.nl [194.109.24.23])
        by mx.google.com with ESMTP id z53si3452941pyg.1.2008.03.30.19.44.58;
        Sun, 30 Mar 2008 19:44:58 -0700 (PDT)
Received-SPF: neutral (google.com: 194.109.24.23 is neither permitted nor denied by domain of python-dev-bounces+python-dev2-garchive-22421=googlegroups....@python.org) client-ip=194.109.24.23;
Authentication-Results: mx.google.com; spf=neutral (google.com: 194.109.24.23 is neither permitted nor denied by domain of python-dev-bounces+python-dev2-garchive-22421=googlegroups....@python.org) smtp.mail=python-dev-bounces+python-dev2-garchive-22421=googlegroups....@python.org
Received: from bag.python.org (bag.python.org [194.109.207.14])
	by smtp-vbr3.xs4all.nl (8.13.8/8.13.8) with ESMTP id m2V2ijEC040491
	for <python-dev2-garchive-22421@googlegroups.com>; Mon, 31 Mar 2008 04:44:57 +0200 (CEST)
	(envelope-from python-dev-bounces+python-dev2-garchive-22421=googlegroups....@python.org)
Received: from bag.python.org (bag [127.0.0.1])
	by bag.python.org (Postfix) with ESMTP id 930571E4002
	for <python-dev2-garchive-22421@googlegroups.com>; Mon, 31 Mar 2008 04:44:57 +0200 (CEST)
X-Original-To: python-...@python.org
Delivered-To: python-...@bag.python.org
Received: from bag.python.org (bag [127.0.0.1])
	by bag.python.org (Postfix) with ESMTP id B212E1E4026
	for <python-...@python.org>; Mon, 31 Mar 2008 04:44:13 +0200 (CEST)
X-Spam-Status: OK 0.004
Received: from bag (HELO bag.python.org) (127.0.0.1)
	by bag.python.org with SMTP; 31 Mar 2008 04:44:13 +0200
Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.173])
	by bag.python.org (Postfix) with ESMTP
	for <python-...@python.org>; Mon, 31 Mar 2008 04:44:04 +0200 (CEST)
Received: by wf-out-1314.google.com with SMTP id 25so1452128wfc.19
	for <python-...@python.org>; Sun, 30 Mar 2008 19:44:04 -0700 (PDT)
Received: by 10.142.154.20 with SMTP id b20mr3352559wfe.150.1206931443989;
	Sun, 30 Mar 2008 19:44:03 -0700 (PDT)
Received: by 10.142.136.15 with HTTP; Sun, 30 Mar 2008 19:44:03 -0700 (PDT)
Message-ID: <e6511dbf0803301944n54cb7046hc4927afff6359...@mail.gmail.com>
Date: Sun, 30 Mar 2008 19:44:03 -0700
From: "Josiah Carlson" <josiah.carl...@gmail.com>
To: "Neal Norwitz" <nnorw...@gmail.com>, Python-Dev <python-...@python.org>
In-Reply-To: <e6511dbf0803260021k77fba84fk9cbf913bc7169...@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
References: <ddd408be0802131228p600ffaceq4a22f6ef98a8...@mail.gmail.com>
	<95d2b6e8-2524-4464-b5a9-c4d56e5f4...@t16g2000hsc.googlegroups.com>
	<e04bdf310802140712v4b2e1a82q897a5dc3abd8...@mail.gmail.com>
	<fcabf485-a74c-405d-991b-71a279861...@i12g2000prf.googlegroups.com>
	<d0e5b945-1b88-4a72-8f1e-47dfba50e...@s12g2000prg.googlegroups.com>
	<ee2a432c0803252100y23456fc0k644a00b107988...@mail.gmail.com>
	<e6511dbf0803252234u7ce96b8dvcad3bfc760c93...@mail.gmail.com>
	<ee2a432c0803252326n54a2fcbena05c32c24950a...@mail.gmail.com>
	<e6511dbf0803260021k77fba84fk9cbf913bc7169...@mail.gmail.com>
Subject: Re: [Python-Dev] Py3k and asyncore/asynchat
X-BeenThere: python-...@python.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Python core developers <python-dev.python.org>
List-Unsubscribe: <http://mail.python.org/mailman/listinfo/python-dev>,
	<mailto:python-dev-requ...@python.org?subject=unsubscribe>
List-Archive: <http://mail.python.org/pipermail/python-dev>
List-Post: <mailto:python-...@python.org>
List-Help: <mailto:python-dev-requ...@python.org?subject=help>
List-Subscribe: <http://mail.python.org/mailman/listinfo/python-dev>,
	<mailto:python-dev-requ...@python.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: python-dev-bounces+python-dev2-garchive-22421=googlegroups....@python.org
Errors-To: python-dev-bounces+python-dev2-garchive-22421=googlegroups....@python.org
X-Virus-Scanned: by XS4ALL Virus Scanner

(sorry for top posting)

I haven't really had time to update the tests/documentation, but
again, I wasn't experiencing any strange test failures with
asyncore/asynchat, nor have I been able to find the buildbot failures
that you are referring to.  Could someone please link the failures
that are not related to being unable to discover a port number?

According to the release schedule, we should have at least a couple
more months for documentation and tests to be updated (I can get
patches ready for alpha 3).

 - Josiah

On Wed, Mar 26, 2008 at 12:21 AM, Josiah Carlson
<josiah.carl...@gmail.com> wrote:
> On Tue, Mar 25, 2008 at 11:26 PM, Neal Norwitz <nnorw...@gmail.com> wrote:
>  > Any reason this was sent just to me and not the list?
>
>  Because gmail only replies to the sender by default.  I need to
>  remember to cc python-dev when I reply (I used the same email client
>  for 8 1/2 years, remembering the quirks of gmail may take some time).
>
>
>
>  >  On Tue, Mar 25, 2008 at 10:34 PM, Josiah Carlson
>  >  <josiah.carl...@gmail.com> wrote:
>  >  >
>  >  > On Tue, Mar 25, 2008 at 9:00 PM, Neal Norwitz <nnorw...@gmail.com> wrote:
>  >  >  > On Thu, Feb 14, 2008 at 10:09 AM, Giampaolo Rodola' <gne...@gmail.com> wrote:
>  >  >  >  > On 14 Feb, 16:36, "Giampaolo Rodola'" <gne...@gmail.com> wrote:
>  >  >  >  >  > Ok, I'll try to take a look at all asyncore/chat reports and try to
>  >  >  >  >  > summarize them by splitting patches which solve bugs and patches which
>  >  >  >  >  > add enhancements or functionalities.
>  >  >  >  >
>  >  >  >
>  >  >  >
>  >  >  > >  === Patches for existing issues ===
>  >  >  >  >
>  >  >  >  >  - 1736190 which includes fixes for the following issues among other
>  >  >  >  >  improvements:
>  >  >  >  >   - 1063924 (asyncore should handle ECONNRESET in send())
>  >  >  >  >   - 1736101 (asyncore should handle ECONNABORTED in recv())
>  >  >  >  >   - 760475 (handle_error() should call handle_close() instead of
>  >  >  >  >  close())
>  >  >  >  >   - 1740572 (refill_buffer() should call handle_close() rather than
>  >  >  >  >  close())
>  >  >  >  >   - 777588 (wrong "connection refused" behavior on Windows)
>  >  >  >  >   - 889153 (wrong connect() behavior)
>  >  >  >  >   - 953599 (asyncore misses socket closes when poll is used)
>  >  >  >  >   - 1025525 (asyncore.file_dispatcher should not take fd as argument)
>  >  >  >  >
>  >  >  >  >  - 1519 (async_chat.__init__() and asyncore.dispatcher.__init__
>  >  >  >  >  parameters inconsistency)
>  >  >  >  >  - 1541 (Bad OOB data management when using asyncore with
>  >  >  >  >  select.poll())
>  >  >  >  >  - 2073 (asynchat push always sends 512 bytes (ignoring
>  >  >  >  >  ac_out_buffer_size))
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  === Open issues with no patches (need review) ===
>  >  >  >  >
>  >  >  >  >  - 658749 (asyncore connect() and winsock errors)
>  >  >  >  >  - 1161031 (neverending warnings from asyncore)
>  >  >  >  >
>  >  >  >  >
>  >  >  >  >  === Enhancements & new features ===
>  >  >  >  >
>  >  >  >  >  - 1641 (add delayed calls feature)
>  >  >  >  >  - 1563 (conversion to py3k and some other changes)
>  >  >  >
>  >  >  >  That's a lot of patches.  My immediate concern is that test_asynchat
>  >  >  >  is very flaky and fails often.  Sometimes it causes other tests to
>  >  >  >  fail.  Is there a patch that addresses this?  If you need examples,
>  >  >  >  just look through the buildbot mails that mention test_asynchat in:
>  >  >  >  http://mail.python.org/pipermail/python-checkins/
>  >  >
>  >  >  No, it's one patch.  All of the fixes were performed mostly by myself
>  >  >  last spring, tested and verified in personal servers, then re-used by
>  >  >  Giampaolo in his async ftp server (which pointed out a few small bugs,
>  >  >  which have been fixed).
>  >  >
>  >  >
>  >  >  >  Some platforms have more problems than others, but almost all
>  >  >  >  platforms have failed test_asynchat at one point or another.
>  >  >
>  >  >  Certainly that is the case.  And according to my reading of a few
>  >  >  buildbot failures, aside from someone breaking asyncore itself, the
>  >  >  failures seem to stem from the test being unable to create a port to
>  >  >  listen on in order to test the server/client functionality.  This is a
>  >  >  buildbot configuration issue (per host), not an asyncore issue.
>  >
>  >  That was the case a long time (~3? months) ago, but hasn't been the
>  >  case recently.  See my recent message about the release.
>
>  I'll look for it tomorrow.  For reference, searches of
>  'site:mail.python.org test_asynchat failure buildbot' only seem to
>  produce the socket listen error.  If there is a better incantation to
>  get google to produce the proper errors (and/or a link), I would
>  appreciate the help.
>
>
>
>  >  >  >  Please break up the patches into 2 sets and prioritize the patches
>  >  >  >  with the set.
>  >  >  >
>  >  >  >   Set #1:  Patches that have a test and doc updates if required
>  >  >  >   Set #2:  Patches that don't have a test or doc updates as required
>  >  >  >
>  >  >  >  For the patches that fall into Set #1, list them in priority order.
>  >  >  >  Top priority would be a problem that fixes failures seen in the
>  >  >  >  buildbots.  Next priority would go to the patches that solve more
>  >  >  >  serious problems.  Post the results here. I will try to look at them.
>  >  >  >
>  >  >  >  For every patch you list, make sure that it conforms to the proper
>  >  >  >  style (e.g, PEP 8) and is essentially perfect and ready for inclusion.
>  >  >  >   This means that there is a single file to download that contains all
>  >  >  >  the modifications. The changes are appropriately commented, lines are
>  >  >  >  less than 80 characters, etc.  One of the modifications should be an
>  >  >  >  entry in Misc/NEWS.
>  >  >
>  >  >  I lied earlier; really there are two patches.  The first is a patch to
>  >  >  asyncore.py and asynchat.py .  It addresses those bugs that Giampaolo
>  >  >  has listed, it is tested, and works.  The second patch is to update
>  >  >  the documentation to mention the sample methods in asynchat for use as
>  >  >  examples, as well as any other changes to the language used in the
>  >  >  documentation that I had made last spring, but which are out of date
>  >  >  from my posting of the original patch.  I can update the documentation
>  >  >  in the next week.
>  >
>  >  Can you provide a link to the patches?  Do the patches include changes
>  >  to test_asyncore and test_asynchat?  The next release is April 2.  I
>  >  would like to commit any patches before Monday to ensure they are
>  >  stable.  Can you get me the patches by this Saturday?
>
>  See http://bugs.python.org/issue1736190 for an updated patch for the
>  modules.  The current test cases pass without issue, though we may
>  want to add tests, which I need to look at the original patch and the
>  original file from which it was created against, then compare it with
>  the most recent changes to the tests from Facundo last June or July.
>
>  I should have the time to get patches for tests and documentation by Monday.
>
>   - Josiah
>
_______________________________________________
Python-Dev mailing list
Python-...@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/python-dev2-garchive-22421%40googlegroups.com