think about the HTTP::Engine

 | 

2008-08-23

refactor the HTTP::Engine::Interface::Standalone

20:35 | はてなブックマーク - refactor the HTTP::Engine::Interface::Standalone - think about the HTTP::Engine

■fixed problems

  • keep-alive doesn't works(KeepAlive うごいてなかったのでなおした)
  • many code cleanup(コードがこんがらがってたので再構成)

■Q. Why don't keep-alive if Connection header contains 'te' ?(TE ヘッダがついてるとキープアライブ効かないというのはバグくさい)

id:yappo : why??

        my $keepalive_available =    $self->keepalive
                                  && index( $connection, 'keep-alive' ) > -1
                                  && index( $connection, 'te' ) == -1          # opera stuff   ←←←←←←← why need this?
        ;

■Why always set $protocols = '1.0' ?

id:yappo : why??(なんでこんなことしてるんでしょう?)

    # We better be careful and just use 1.0
    $protocol = '1.0'; # XXX I don't know about why this needed.
 |