No 400 response

Eamon Daly edaly at
Thu Feb 21 23:22:24 UTC 2008

Hey, all. I just noticed that if I send a botched request, I
don't get a 400 response as I'd expect:

    [edaly at db-01 Perlbal]$ telnet localhost 8080
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.

I think the bailout is at line 264 of

    unless (($is_res ? $self->{res_headers} : $self->{req_headers}) =
                Perlbal::HTTPHeaders->new(\$hstr, $is_res)) {
        # bogus headers?  close connection.
        print "  bogus headers\n" if Perlbal::DEBUG >= 3;
        return $self->close("parse_header_failure");

It looks intentional. Any reason why it doesn't return a 400

Eamon Daly

More information about the perlbal mailing list