Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8314791

Browse files
author
Felipe Zimmerle
committed
test: nginx: Adds timeout while listening for a socket.
1 parent215042a commit8314791

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎tests/run-regression-tests-nginx.pl‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,9 @@ sub do_raw_request {
387387
)or msg("Failed to connect to localhost:$opt{p}:$@");
388388
returnunless ($sock);
389389

390+
my$timeo =pack("qq", 2, 0);
391+
$sock->sockopt(SO_RCVTIMEO,$timeo);
392+
390393
# Join togeather the request
391394
my$r =join("",@_);
392395
dbg($r);
@@ -777,7 +780,7 @@ sub nginx_start {
777780
}
778781

779782
# Look for startup msworker cycleg
780-
unless (defined match_log("error",qr/setproctitle: "nginx:worker process"/, 60,"worker cycle")) {
783+
unless (defined match_log("error",qr/startworker process/, 60)) {
781784
vrb(join("",map { quote_shell($_) }@p));
782785
msg("Nginx server failed to start.");
783786
nginx_stop();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp