Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 09:45:26 -0600
From:      Dan Nelson <dnelson@emsphone.com>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        questions@FreeBSD.ORG
Subject:   Re: 1024 character input limit? (forw) Re: Please help: Buffers
Message-ID:  <20000310094526.A461@dan.emsphone.com>
In-Reply-To: <20000309234722.E14279@fw.wintelcom.net>; from "Alfred Perlstein" on Thu Mar  9 23:47:22 GMT 2000
References:  <20000309234722.E14279@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Mar 09), Alfred Perlstein said:
> There's probably 100 places I'd have to look to figure out where this
> limit is, does anyone have an idea?
> 
> basically input is limited to 1024 characters...

... because when you're typing in a terminal in Canonical mode (the
default), the kernel has to keep whatever you type in a buffer so you
can line-edit it with ^H, ^W, or ^U.  That limit is defined by the
TTYHOG value in /sys/sys/tty.h.  man termios for more info on Canonical
mode.

Of course, this has nothing to do with Matthew's original problem, as
squid doesn't open up PTYs to talk to its subprocesses.

> > > 
> > > Matthew's script doesn't need a browser.  you can run it from the command
> > > line in UNIX.  The same program run under Linux doesn't exhibit this
> > > problem.

Yes it does, at 4096 characters.  Again, only when you're typing in a
tty.  If a program creates a pipe, forks, and execs another program
using the pipe to communicate (like what squid does), there are no TTYs
involved, and the line-editing character limit doesn't apply.

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000310094526.A461>