From das@HAL9000.homeunix.com  Mon Aug 26 05:43:50 2002
Return-Path: <das@HAL9000.homeunix.com>
Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 9CEC237B400
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Aug 2002 05:43:49 -0700 (PDT)
Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D7CEC43E4A
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Aug 2002 05:43:48 -0700 (PDT)
	(envelope-from das@HAL9000.homeunix.com)
Received: from HAL9000.homeunix.com (localhost [127.0.0.1])
	by HAL9000.homeunix.com (8.12.5/8.12.5) with ESMTP id g7QCiVZC002302
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 26 Aug 2002 05:44:31 -0700 (PDT)
	(envelope-from das@HAL9000.homeunix.com)
Received: (from das@localhost)
	by HAL9000.homeunix.com (8.12.5/8.12.5/Submit) id g7QCiVK2002301;
	Mon, 26 Aug 2002 05:44:31 -0700 (PDT)
	(envelope-from das)
Message-Id: <200208261244.g7QCiVK2002301@HAL9000.homeunix.com>
Date: Mon, 26 Aug 2002 05:44:31 -0700 (PDT)
From: David Schultz <dschultz@uclink.Berkeley.EDU>
Reply-To: David Schultz <dschultz@uclink.Berkeley.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: paste in syscons doesn't work properly
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         42031
>Category:       kern
>Synopsis:       paste in syscons doesn't work properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    das
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 26 05:50:01 PDT 2002
>Closed-Date:    Wed Mar 05 00:18:13 PST 2003
>Last-Modified:  Wed Mar 05 00:18:13 PST 2003
>Originator:     David Schultz
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
>Environment:
>Description:
TTYHOG in src/sys/sys/tty.h limits the number of bytes that may be
stored in a tty's input buffer in order to prevent resource
exhaustion.  The historical value of this limit is 1024 bytes.
However, this value is too low to support proper pasting in syscons;
only the first 1K of the cut buffer is pasted.  Raising the limit to
4096 bytes solves this problem even on 80x50 consoles.
>How-To-Repeat:
>Fix:
Index: src/sys/sys/tty.h
===================================================================
RCS file: /home/ncvs/src/sys/sys/tty.h,v
retrieving revision 1.69
diff -u -r1.69 tty.h
--- tty.h       2002/05/28 15:24:13     1.69
+++ tty.h       2002/08/26 12:39:40
@@ -168,7 +168,7 @@
 #define        OBUFSIZ 100
 
 #ifndef TTYHOG
-#define        TTYHOG  1024
+#define        TTYHOG  4096
 #endif
 
 #ifdef _KERNEL
>Release-Note:
>Audit-Trail:

From: Giorgos Keramidas <keramida@FreeBSD.org>
To: David Schultz <dschultz@uclink.Berkeley.EDU>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/42031: paste in syscons doesn't work properly
Date: Tue, 27 Aug 2002 00:13:59 +0300

 I've been bitten by this in 132x25 consoles, whenever I tried to paste
 a lot of stuff.  This put aside, what is the effect of this on
 kernel's size (if any)?
 
 - Giorgos

From: David Schultz <dschultz@uclink.Berkeley.EDU>
To: Giorgos Keramidas <keramida@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: kern/42031: paste in syscons doesn't work properly
Date: Mon, 26 Aug 2002 14:56:38 -0700

 Thus spake Giorgos Keramidas <keramida@FreeBSD.org>:
 > I've been bitten by this in 132x25 consoles, whenever I tried to paste
 > a lot of stuff.  This put aside, what is the effect of this on
 > kernel's size (if any)?
 
 I think the limit is purely administrative.  If I'm reading the
 code right, the amount of memory that is malloced for clists by
 default shouldn't change.  But caveat emptor, as I'm not a tty
 expert.
Responsible-Changed-From-To: freebsd-bugs->das 
Responsible-Changed-By: das 
Responsible-Changed-When: Mon Feb 24 01:23:01 PST 2003 
Responsible-Changed-Why:  
Over to me.  I can deal with my own PRs now. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42031 
State-Changed-From-To: open->closed 
State-Changed-By: das 
State-Changed-When: Wed Mar 5 00:18:00 PST 2003 
State-Changed-Why:  
Committed.  Thanks, self! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=42031 
>Unformatted:
