I'm playing with the connection input filter (the skeleton of 
TestFilter/input_msg.pm in t/) and when it does:

         my $status = $bucket->read($data);

isn't the bucket supposed to include a single line? from dumping the 
values read in the while loop I get the following data read

[Tue Jun 25 01:27:21 2002] [warn] data: GET /perl/modperl.pl HTTP/1.1

[Tue Jun 25 01:27:21 2002] [warn] data: TE: deflate,gzip;q=0.3

[Tue Jun 25 01:27:21 2002] [warn] data: C
[Tue Jun 25 01:27:21 2002] [warn] data: C
[Tue Jun 25 01:27:21 2002] [warn] data: onnection: TE, close

[Tue Jun 25 01:27:21 2002] [warn] data: H
[Tue Jun 25 01:27:21 2002] [warn] data: H
[Tue Jun 25 01:27:21 2002] [warn] data: ost: localhost:8005

[Tue Jun 25 01:27:21 2002] [warn] data: U
[Tue Jun 25 01:27:21 2002] [warn] data: U
[Tue Jun 25 01:27:21 2002] [warn] data: ser-Agent: lwp-request/2.01

is the right solution is to buffer up till you get the whole line (based 
on the terminating /[\r\n]$/?

Also notices the dups of the first letter, how to handle this? why does 
this happen? by adding more debug prints after the first Ucase letter is 
printed the filter is called again.

---

How do you maintain state in the filter, after all the actual handler is 
called many times for a single connection, so you cannot really 
initialize any variables, since there is no such a thing as a beginning 
of the processing. If I understand correctly if KeepAlive is on, your 
filter may be called on a bunch of incoming requests in a row without any

---

another issue::

PerlInputFilterHandler Foo

is completely ignored unless preloaded or configured as +Foo

---

there is no $filter->warn()|log()|... getting a global $s doesn't sound 
like a good idea.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to