From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: * X-Spam-Status: No, score=1.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,RDNS_NONE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 28930 invoked from network); 1 Sep 2021 01:22:37 -0000 Received: from unknown (HELO 4ess.inri.net) (216.126.196.42) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 01:22:37 -0000 Received: from mail-io1-f48.google.com ([209.85.166.48]) by 4ess; Tue Aug 31 14:38:23 -0400 2021 Received: by mail-io1-f48.google.com with SMTP id e186so26348523iof.12 for <9front@9front.org>; Tue, 31 Aug 2021 11:38:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=MwBNVp1wfCDfpJoh7mfthXOXI1ZqqMTFn9CACRLvUW8=; b=C8U1MAupAXVYIhLBcykjefCCs6Kop0f/GbSIG/uB/xn+/wAupk0G/R1fPv9Jv8fBPb vjCIByb9uihI7/3WZsVMFPXNvatUHtafyC2tWk78qcn0oPPbN5zFmWjzGrKZ1vz3Z2rZ pzB3HRkd7AqEDcUQvMWXYMsFCfdzZmdXLYjm/wbYAFJTMDa9z23HNgDU54s9n1lIUjad jGjvXV6e2fnHPdojEzgZPeJ69OX00xjcJz6k4g6bJY+8dFUItiRVe96K3rdDjy3+RJVD uNlhJYgNVZtGXJDe18mJTVpJhtdBGIgVdpAjVjA0DH6OBkbVP9CsE1VSU7DtwvErquPV dUNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=MwBNVp1wfCDfpJoh7mfthXOXI1ZqqMTFn9CACRLvUW8=; b=OeOxPsfx9r4JUi3zRDlzYnYR7Dw/VBBqb0xS7Wp8gR5vLNTG3OS8V77rQ94Va44sFq yjGPT9lG8t4Avgd0u1iswv8c2H2n/3nVHdWcAfubAQjRklZ3baozXRwgqlgnJr1qQhhU DI8j4d6fzkqy2BWyMVpuYXyGMuVphYIYcO1kJGa48YvEXkVPqXR9OnuN4bOHeD8SqjNw lqa+8sY8q7yPBwcEOSSPBuJNHPnNElGpZdPMLTMJLyYzW4l/GnDYizyX/nwBbLqV/eiK +0WmfKWFawOdYAIbIv7M/vwZ1RLtwT1W1/EyVEkWbcbJBDSINQ3yPCOYL87if538vVHP XJbg== X-Gm-Message-State: AOAM5308MQM/52sHF2VtHfePZM/1+6+XKGEn46ngXZGW6mjRslmNBPfI JYv1ok48ge2xAlPFSqoUh8GQLiKIHQ0= X-Google-Smtp-Source: ABdhPJwUPIxfqlsJnE280CpggtskekFPenZQJlGRyq6Ctk+/HHwFa9PbQU+NTpY5JHX755QzLh0kQA== X-Received: by 2002:a05:6602:2001:: with SMTP id y1mr23925302iod.97.1630435095595; Tue, 31 Aug 2021 11:38:15 -0700 (PDT) Return-Path: Received: from smtpclient.apple (c-67-184-39-205.hsd1.il.comcast.net. [67.184.39.205]) by smtp.gmail.com with ESMTPSA id h25sm9595750ila.78.2021.08.31.11.38.14 for <9front@9front.org> (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 31 Aug 2021 11:38:15 -0700 (PDT) From: Xiao-Yong Jin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Date: Tue, 31 Aug 2021 13:38:14 -0500 References: <41DB60AECD3C313EFF46C7CFB680A537@felloff.net> To: 9front@9front.org In-Reply-To: <41DB60AECD3C313EFF46C7CFB680A537@felloff.net> Message-Id: X-Mailer: Apple Mail (2.3654.120.0.1.13) List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: persistence-scale scripting controller Subject: Re: [9front] rconnect via aan reliability patch Reply-To: 9front@9front.org Precedence: bulk Write does not block. Read does. In the case with read errors, the aanserver end did everything before aanclient starts to read the address, and somehow the channel has hung up before the read. The extra read in aanserver blocks the aanserver at that point and wait for the OK signal from aanclient before continuing. The thing I don't understand is that what actually makes the channel hang up. Do you have any suggestions as to how to debug this issue? > On Aug 31, 2021, at 2:55 AM, cinap_lenrek@felloff.net wrote: > > how does this work? how is adding another roundtrip fixing > a hung up tcp connection? > > the patch is probably fine, but i do not understand what it > is fixing here... > > -- > cinap