158 |
my $html = $f->html; |
my $html = $f->html; |
159 |
die "no html output" unless $html; |
die "no html output" unless $html; |
160 |
warn "## html ",length($html)," bytes"; |
warn "## html ",length($html)," bytes"; |
161 |
$req->print( "$html\n" ); |
eval { |
162 |
|
$req->print( $html ); |
163 |
|
}; |
164 |
|
die "can't send to wire: $@" if $@; |
165 |
} else { |
} else { |
166 |
warn "# can't call request on nothing!"; |
warn "# can't call request on nothing!"; |
167 |
} |
} |
185 |
send_message($req); |
send_message($req); |
186 |
} |
} |
187 |
|
|
188 |
if ($req->conn ) { |
if ( $req->conn ) { |
189 |
$req->conn->close; |
$req->conn->close; |
190 |
warn "## close connection: $@"; |
warn "## close connection: $@"; |
191 |
} |
} |