From owner-freebsd-net@freebsd.org Thu Aug 27 00:46:25 2015 Return-Path: Delivered-To: freebsd-net@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8346B9C01EC for ; Thu, 27 Aug 2015 00:46:25 +0000 (UTC) (envelope-from ddesimone@verio.net) Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0064.outbound.protection.outlook.com [65.55.169.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "MSIT Machine Auth CA 2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3592A1BFD for ; Thu, 27 Aug 2015 00:46:24 +0000 (UTC) (envelope-from ddesimone@verio.net) Received: from BLUPR0801MB674.namprd08.prod.outlook.com (10.141.255.11) by BLUPR0801MB673.namprd08.prod.outlook.com (10.141.254.27) with Microsoft SMTP Server (TLS) id 15.1.243.23; Thu, 27 Aug 2015 00:46:16 +0000 Received: from BLUPR0801MB674.namprd08.prod.outlook.com ([10.141.255.11]) by BLUPR0801MB674.namprd08.prod.outlook.com ([10.141.255.11]) with mapi id 15.01.0243.020; Thu, 27 Aug 2015 00:46:16 +0000 From: David DeSimone To: "freebsd-net@freebsd.org" Subject: RE: ssh over WAN: TCP window too small Thread-Topic: ssh over WAN: TCP window too small Thread-Index: AQHQ34j16xp/8cRnZ0W04Z/ulk58zZ4ddvCAgAAfSACAAFwYgIAA21+AgAARXICAACTZcA== Date: Thu, 27 Aug 2015 00:46:16 +0000 Message-ID: References: <55DCF080.7080208@stankevitz.com> <20150826010323.GN33167@funkthat.com> <55DD2A98.2010605@stankevitz.com> <20150826082457.GQ33167@funkthat.com> <55DE2FDF.5030707@stankevitz.com> <20150826223215.GS33167@funkthat.com> In-Reply-To: <20150826223215.GS33167@funkthat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=ddesimone@verio.net; x-originating-ip: [173.71.11.10] x-microsoft-exchange-diagnostics: 1; BLUPR0801MB673; 5:PR2tXQjiUq9UECrbvscyycQa1PCUQ2JSCvIEFEG7SzgdP6f7vpcg44/D47ssA9XKdCuWkzC8GChNLHBeTCOIzFxQtrVBl0yhRrheJ+189It9jMudwTepMZsaodfxZgb3xuB8oe69Dd5s/UI20ERWUA==; 24:qHLXDMqNtzoRqabMudEa5uDaXFcYiMinX6oXkordQRIYrzCZh51fVTcEsxYVGWgj2oteN2YEev6g9xGMMaVjci9xSOrFxMrhQwkN3SJbQTo=; 20:sLkMKEwu+YeuYLhrfgmV4RPFXvaA5Przq18yCmqJD6zcKlj828PZpLhVqur29BB731sMNqELwIJVO1GkDCjmeQ== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0801MB673; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(8121501046)(5005006)(3002001); SRVR:BLUPR0801MB673; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0801MB673; x-forefront-prvs: 06818431B9 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(377454003)(189002)(199003)(24454002)(479174004)(77156002)(2656002)(64706001)(46102003)(81156007)(4001540100001)(93886004)(106116001)(87936001)(189998001)(107886002)(74316001)(122556002)(97736004)(5001830100001)(10400500002)(5001860100001)(110136002)(40100003)(62966003)(450100001)(86362001)(101416001)(2501003)(102836002)(99286002)(54356999)(77096005)(5007970100001)(76176999)(76576001)(2900100001)(5003600100002)(2351001)(2950100001)(68736005)(105586002)(5001960100002)(33656002)(106356001)(5004730100002)(66066001)(50986999)(5002640100001)(92566002)(5890100001)(160913001)(15963001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0801MB673; H:BLUPR0801MB674.namprd08.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: verio.net does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: verio.net X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Aug 2015 00:46:16.3601 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 281c3918-264a-4db4-ab20-2dafa1dca324 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0801MB673 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Aug 2015 00:46:25 -0000 On 8/26/15 1:24 AM, John-Mark Gurney wrote: > > 94146 ssh 6.686140 CALL read(0x4,0x7fffffff6c70,0x4000) > > 94146 ssh 6.686154 GIO fd 4 read 4096 bytes > > [ read of stdin (/dev/zero) snipped) > > It would be interesting to know how long from the read of stdin (and is > it really reading stdin in 4k blocks? If so, that should be fixed) The read is making a call with 0x4000 =3D 16k buffer size, but it only rece= ives 4k, probably because that is the max size of the pipe buffer. ________________________________ This email message is intended for the use of the person to whom it has bee= n sent, and may contain information that is confidential or legally protect= ed. If you are not the intended recipient or have received this message in = error, you are not authorized to copy, distribute, or otherwise use this me= ssage or its attachments. Please notify the sender immediately by return e-= mail and permanently delete this message and any attachments. makes no warr= anty that this email is error or virus free. Thank you. ________________________________ This email message is intended for the use of the person to whom it has bee= n sent, and may contain information that is confidential or legally protect= ed. If you are not the intended recipient or have received this message in = error, you are not authorized to copy, distribute, or otherwise use this me= ssage or its attachments. Please notify the sender immediately by return e-= mail and permanently delete this message and any attachments. NTT America m= akes no warranty that this email is error or virus free. Thank you. ________________________________