Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Mar 2000 00:34:18 -0800
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Matthew Enger <menger@dhs.org>
Cc:        John Ryan <jryan@kgv.edu.hk>, questions@freebsd.org
Subject:   Re: Please help: Buffers
Message-ID:  <20000310003418.F14279@fw.wintelcom.net>
In-Reply-To: <Pine.LNX.4.10.10003101418410.1527-100000@gate.kgv.edu.hk>; from menger@dhs.org on Fri, Mar 10, 2000 at 02:20:06PM %2B0800
References:  <20000309221203.A14279@fw.wintelcom.net> <Pine.LNX.4.10.10003101418410.1527-100000@gate.kgv.edu.hk>

next in thread | previous in thread | raw e-mail | index | archive | help
* Matthew Enger <menger@dhs.org> [000309 22:52] wrote:
> Hi Alfred,
> 
> We are running it on the console, i.e. perl t.pl, holding down the "a" key
> and after 1024 "a"'s it will not accept any more.

In this case you seem to be hitting the limit that the kernel will
buffer for you, however I'm unsure if it's related to your other problems
as the commands I showed below seem to work ok.

It honestly looks like programming error/incorretness, perhaps using
the wrong line dicipline, you ought to take it up with your software
vendor/programmer.

-Alfred

> 
> 	from,
> 		Matthew Enger
> 		menger@kgv.edu.hk
> 
> 
> On Thu, 9 Mar 2000, Alfred Perlstein wrote:
> 
> > * John Ryan <jryan@kgv.edu.hk> [000309 21:58] wrote:
> > > Hi Alfred,
> > > 
> > > 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.
> > 
> > I can't reproduce this:
> > 
> > t.pl has your script in it...
> > 
> > ~ % lptest 2000 5 | sed 's/ //g' | wc            
> >        5       5    9900
> > ~ % lptest 2000 5 | sed 's/ //g' | perl t.pl | wc
> >        5       5    9900
> > ~ % uname -srm
> > FreeBSD 3.4-STABLE i386
> > 
> > how are you running this script?
> > 
> > please give a better way to reproduce this.
> > 
> > -Alfred
> > 
> > > 
> > > Regards
> > > John Ryan
> > > System Manager
> > > King George V School
> > > 
> > > <On Thu, 9 Mar 2000, Alfred Perlstein wrote:
> > > 
> > > > * Matthew Enger <menger@student.kgv.edu.hk> [000309 18:23] wrote:
> > > > > 
> > > > > Hello,
> > > > > 
> > > > > At the school I am attending we are running Squid 2.3.STABLE1 on FreeBSD 3.4-
> > > > > STABLE with cyberpatrol filters. We reciently discovered that if the URL 
> > > > > entred into the squid redirect program for cyberpatrol is over 1024 
> > > > > characters the program will not recieve any more text. This is causing 
> > > > > problems for some URI's being accessed through our proxy which are (for some 
> > > > > odd reason) longer then 1024 characters.
> > > > > 
> > > > > I wrote a perl script below to act as a redirector and it is having the same 
> > > > > problem:
> > > > > 
> > > > > #!/usr/bin/perl
> > > > > 
> > > > > $|=1;
> > > > > use strict;
> > > > > 
> > > > > while (<>) {
> > > > > 	my @X = split;
> > > > > 	my $url = $X[0];
> > > > > 	chomp $url;
> > > > > 
> > > > >         print "$url\n";
> > > > > }
> > > > > 
> > > > > Does anyone know how I can change this limit for both C (the cyberpatrol 
> > > > > program) and perl programs?
> > > > 
> > > > You're not mentioning which browser you are using, but i know that 
> > > > some if not all versions of MSIE don't work with URLs longer than
> > > > 1024 characters.
> > > > 
> > > > -Alfred
> > > > 
> > > > 
> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > > > with "unsubscribe freebsd-questions" in the body of the message
> > > > 
> > 
> > -- 
> > -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]
> > 
> > 
> > To Unsubscribe: send mail to majordomo@FreeBSD.org
> > with "unsubscribe freebsd-questions" in the body of the message
> > 

-- 
-Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org]


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?20000310003418.F14279>