• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

UltraMonkey-L7 V3(multi-thread implementation)


Commit MetaInfo

Revisiónb292372949a557be927a7958a4d6a4702270c022 (tree)
Tiempo2012-09-11 20:00:44
Autorhibari <l05102@shib...>
Commiterhibari

Log Message

Fixed bug: Evaluated the header section with the body section in HTTP negotiate check.

Normally, evaluates only the body section in GET check.
But l7directord was evaluates with body section and header section.

This problem was fixed, l7directord become the following operation.

* In the case of "httpmethod = HEAD":

Evaluates only the header(Includes HTTP response code) section.

* In the case of "httpmethod = GET":

Evaluates only the body section.

Cambiar Resumen

Diferencia incremental

--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,7 @@
11 [Sep. 8 2012] 3.1.0-1 HIBARI Michiro
22 - Add "session_thread_pool_size" option for l7vsadm and l7directord.
33 - Change spec file. Make devel package.
4+ - Fixed bug: Evaluated the header section with the body section in HTTP negotiate check.
45
56 [Aug. 30 2012] 3.0.4-2 Hiroaki Nakano
67 - Fixed LogLevel at #29144 patch.
--- a/l7directord/l7directord
+++ b/l7directord/l7directord
@@ -2405,14 +2405,15 @@ sub check_http {
24052405 $status_line = $res->status_line;
24062406 $status_line =~ s/[\r\n]//g;
24072407
2408+ my $response = $v->{httpmethod} eq "HEAD" ? $res->as_string : $res->content;
24082409 my $recstr = $r->{receive};
24092410 if (!$res->is_success) {
24102411 ld_log( _message( 'WRN1102', $status_line, $r->{server}{ip}, $port ) ) if (!defined $status || $status eq $SERVICE_UP);
24112412 return $SERVICE_DOWN;
24122413 }
2413- elsif (defined $recstr && $res->as_string !~ /$recstr/) {
2414+ elsif (defined $recstr && $response !~ /$recstr/) {
24142415 ld_log( _message( 'WRN1103', $recstr, $r->{server}{ip}, $port ) ) if (!defined $status || $status eq $SERVICE_UP);
2415- ld_debug(3, "Headers " . $res->headers->as_string);
2416+ ld_debug(3, "HTTP Response " . $response);
24162417 ld_debug(2, "check_http: $r->{url} is down\n");
24172418 return $SERVICE_DOWN;
24182419 }