Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0E9E740BFD3 for ; Mon, 6 Sep 2010 15:16:49 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.89 X-Spam-Level: X-Spam-Status: No, score=-1.89 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V6AAHeeaEQPE for ; Mon, 6 Sep 2010 15:16:37 -0700 (PDT) Received: from defaultvalue.org (li12-156.members.linode.com [70.85.129.156]) by olra.theworths.org (Postfix) with ESMTP id BCD7B40BD93 for ; Mon, 6 Sep 2010 15:16:37 -0700 (PDT) Received: from omen.defaultvalue.org (localhost [127.0.0.1]) by defaultvalue.org (Postfix) with ESMTP id 310079107B; Mon, 6 Sep 2010 17:16:36 -0500 (CDT) Received: from raven.defaultvalue.org (raven.defaultvalue.org [192.168.1.7]) by omen.defaultvalue.org (Postfix) with ESMTP id 0461045C001; Mon, 6 Sep 2010 17:16:36 -0500 (CDT) Received: by raven.defaultvalue.org (Postfix, from userid 1000) id D4E387C4109; Mon, 6 Sep 2010 17:16:35 -0500 (CDT) From: Rob Browning To: Jameson Rollins Subject: Re: Xapian exceptions "Key too long" during notmuch new References: <878w3eepgy.fsf@raven.defaultvalue.org> <87sk1mn3nf.fsf@servo.finestructure.net> Date: Mon, 06 Sep 2010 17:16:35 -0500 In-Reply-To: <87sk1mn3nf.fsf@servo.finestructure.net> (Jameson Rollins's message of "Mon, 06 Sep 2010 14:11:16 -0400") Message-ID: <87vd6i8qm4.fsf@raven.defaultvalue.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Sep 2010 22:16:49 -0000 --=-=-= Jameson Rollins writes: > Hey, Rob. I've never seen this error before. I wonder if these > messages have some really long header names? If it's not too onerous, > can you find the messages where this occurred? There's a verbose > option, that might be useful. > > jamie. OK, it looks like this is the first message that caused the exception: --=-=-= Content-Disposition: inline; filename=bad-mail.txt Content-Description: key-too-long-msg.txt Return-Path: X-Original-To: rlb@raven.defaultvalue.org Delivered-To: rlb@raven.defaultvalue.org Received: from defaultvalue.org (omen.defaultvalue.org [192.168.1.1]) by raven.defaultvalue.org (Postfix) with ESMTP id D63A71D3018 for ; Thu, 30 Dec 2004 19:01:37 -0600 (CST) Received: by defaultvalue.org (Postfix) id A19A64176; Thu, 30 Dec 2004 18:34:22 -0600 (CST) Delivered-To: rlb@defaultvalue.org Received: from lists.samba.org (dp.samba.org [66.70.73.150]) by defaultvalue.org (Postfix) with ESMTP id 6F2F3416F for ; Thu, 30 Dec 2004 18:34:22 -0600 (CST) Received: from dp.samba.org (localhost [127.0.0.1]) by lists.samba.org (Postfix) with ESMTP id 125E4163B82 for ; Fri, 31 Dec 2004 00:34:22 +0000 (GMT) X-Original-To: rsync@lists.samba.org Delivered-To: rsync@lists.samba.org Received: from binome.blorf.net (dsl3-63-249-88-2.cruzio.com [63.249.88.2]) by lists.samba.org (Postfix) with ESMTP id 80F70162BD9 for ; Fri, 31 Dec 2004 00:33:47 +0000 (GMT) Received: by binome.blorf.net (Postfix, from userid 1000) id 950F1291E; Thu, 30 Dec 2004 16:33:46 -0800 (PST) Date: Thu, 30 Dec 2004 16:33:46 -0800 From: Wayne Davison To: Stephen Schembri X-Gnus-Mail-Source: maildir:/home/rlb/incoming-mail/spool/new Message-ID: <20041231003346.GA1188@blorf.net> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="jI8keyz6grp/JLjh" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i Cc: rsync@lists.samba.org Subject: Re: Timeout Issues X-BeenThere: rsync@lists.samba.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: rsync user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: rsync-bounces+rlb=defaultvalue.org@lists.samba.org Errors-To: rsync-bounces+rlb=defaultvalue.org@lists.samba.org X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on raven.defaultvalue.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.0.1 Lines: 64 Xref: trouble.defaultvalue.org rsync:6592 --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Dec 30, 2004 at 11:23:07PM -0000, Stephen Schembri wrote: > By default the timeout value is supposed to be 60 according to io.c, but > in loadparam.c it is stating a value of 0 - is this statement correct? The comment in io.c says that the default select() timeout is 60 secs, which is not the same as the default rsync timeout value (which is 0, meaning that rsync doesn't timeout). > If I declare a timeout value of "timeout=20" in the config file, the > value is ignored and the value of 60 seconds is always used. The attached patch should fix this. > Hope you have a Happy New Year and most of all, keep up the excellent > work. Thanks! ..wayne.. --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="timeout.patch" --- clientserver.c 8 Dec 2004 17:11:15 -0000 1.134 +++ clientserver.c 31 Dec 2004 00:24:07 -0000 @@ -43,6 +43,7 @@ extern int filesfrom_fd; extern int remote_protocol; extern int protocol_version; extern int io_timeout; +extern int select_timeout; extern int orig_umask; extern int no_detach; extern int default_af_hint; @@ -476,8 +477,11 @@ static int rsync_module(int f_in, int f_ exit_cleanup(RERR_UNSUPPORTED); } - if (lp_timeout(i)) + if (lp_timeout(i)) { io_timeout = lp_timeout(i); + if (io_timeout && io_timeout < select_timeout) + select_timeout = io_timeout; + } start_server(f_in, f_out, argc, argp); --jI8keyz6grp/JLjh Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html --jI8keyz6grp/JLjh-- --=-=-= -- Rob Browning rlb @defaultvalue.org and @debian.org GPG as of 2002-11-03 14DD 432F AE39 534D B592 F9A0 25C8 D377 8C7E 73A4 --=-=-=--