From owner-freebsd-questions@FreeBSD.ORG Sun Nov 30 06:19:40 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8633B1065670 for ; Sun, 30 Nov 2008 06:19:40 +0000 (UTC) (envelope-from libc.mail@gmail.com) Received: from mu-out-0910.google.com (mu-out-0910.google.com [209.85.134.184]) by mx1.freebsd.org (Postfix) with ESMTP id 119288FC08 for ; Sun, 30 Nov 2008 06:19:39 +0000 (UTC) (envelope-from libc.mail@gmail.com) Received: by mu-out-0910.google.com with SMTP id i2so1810944mue.3 for ; Sat, 29 Nov 2008 22:19:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:mime-version:subject:date:x-mailer; bh=LbD2UuM2UgJI+enInk/l1NOzBcazVszUD/rZQXzLSxc=; b=rha3TbHbEoeVljF9QtxW7vfJAabtEpNwf1u/a/MFrIKcIuBHc044l2CtwlaYu4XmbO iggAnfiVRHg84110regohRNZe8Ie5y2rzKEgmOfAqFVQ2wztDsRQ7gUlIQ5JaiTx7gFT Jze3xvYsxmCYYOYoXfmQllLa9P+fjRSNUMv1I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:mime-version:subject:date:x-mailer; b=kpg5uAzcpwJRuh9DUjske32PmD5qYTMo9kuVcao22YGzSu5o3V3SrSZDLMJhWGr2Mb c/ObRpXXgvFVQ39fE6q/FZpcSkICV+tJxbMUrjww9OO1kCV5oDLRlSPnRWubdAeF4Ei/ DcU5shkBtm0X24Z835MiAbkpKh7xO+Hf9JO68= Received: by 10.103.229.12 with SMTP id g12mr3901976mur.16.1228024021933; Sat, 29 Nov 2008 21:47:01 -0800 (PST) Received: from ?192.168.1.50? (ppp91-76-54-50.pppoe.mtu-net.ru [91.76.54.50]) by mx.google.com with ESMTPS id 23sm5457114mun.58.2008.11.29.21.47.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 29 Nov 2008 21:47:01 -0800 (PST) Message-Id: From: Eugene Pimenov To: freebsd-questions@freebsd.org Mime-Version: 1.0 (Apple Message framework v929.2) Date: Sun, 30 Nov 2008 08:46:59 +0300 X-Mailer: Apple Mail (2.929.2) Content-Type: text/plain; charset=WINDOWS-1251; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Pasting via ssh causes data loss X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Nov 2008 06:19:40 -0000 Hello everyone, I'm not really sure weither it's related to freebsd or ssh. When I paste a lot of data (6060 bytes, 60 lines 100 bytes each + =20 =91\n=92) via ssh into `cat > test.txt` or the small program, one = freebsd =20 receives 5181, another receives 3221 bytes. The number of bytes freebsd receives are always the same. I can't reproduce this on linux (OpenSSH 4.3p2 on debian and OpenSSH =20 4.7p1 on 2 gentoo boxes). Also, I have one freebsd box without this =20 problem (7.0-STABLE, openssh 4.5p1). Source of the small program: #include int main() { char buf[10000]; size_t readed =3D 0; while(!feof(stdin)) { readed+=3Dfread(buf, 1, sizeof(buf), stdin); } printf("I've received %d bytes\n", readed); return 0; } Versions of sshd are =93OpenSSH_4.5p1 FreeBSD-20061110, OpenSSL 0.9.8e =20= 23 Feb 2007=94. FreeBSD versions are FreeBSD 7.0-BETA4 and FreeBSD 7.0-=20= RELEASE. Why is it happening? What should I do to stop this? It's pretty =20 annoying. ~