FreeBSD Bugzilla – Attachment 235432 Details for
Bug 265389
sysutils/bsdstats: Set timeout to wait response from server
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
sysutils_bsdstats.patch (text/plain), 1.56 KB, created by
Yasuhiro Kimura
on 2022-07-22 19:09:53 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2022-07-22 19:09:53 UTC
Size:
1.56 KB
patch
obsolete
>From 00dc201061423830d4ebbbe242fbfc95a4f275ed Mon Sep 17 00:00:00 2001 >From: Yasuhiro Kimura <yasu@FreeBSD.org> >Date: Sat, 23 Jul 2022 04:02:22 +0900 >Subject: [PATCH] sysutils/bsdstats: Set timeout to wait response from server > >Currently 300.statistics hangs up if server accepts connection but >doesn't respond to the request. So set timeout to wait response from >server. >--- > sysutils/bsdstats/Makefile | 2 +- > sysutils/bsdstats/files/300.statistics.in | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/sysutils/bsdstats/Makefile b/sysutils/bsdstats/Makefile >index 6935afad167e..3a64e8fd4a1a 100644 >--- a/sysutils/bsdstats/Makefile >+++ b/sysutils/bsdstats/Makefile >@@ -1,6 +1,6 @@ > PORTNAME= bsdstats > PORTVERSION= 7.0 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= sysutils > DISTFILES= > >diff --git a/sysutils/bsdstats/files/300.statistics.in b/sysutils/bsdstats/files/300.statistics.in >index 0985059d5555..e23df42fb224 100644 >--- a/sysutils/bsdstats/files/300.statistics.in >+++ b/sysutils/bsdstats/files/300.statistics.in >@@ -151,7 +151,7 @@ do_http_request() { > if [ -n "${body}" ]; then txt="${txt}${CR}${NL}Content-Length: ${#body}"; fi > txt="${txt}${CR}${NL}${CR}${NL}${body}" > >- resp=$(echo "${txt}" | nlog "out" | ${NC} ${nc_host} ${nc_port} | nlog "in" 2>/dev/null) >+ resp=$(echo "${txt}" | nlog "out" | ${NC} -w ${timeout} ${nc_host} ${nc_port} | nlog "in" 2>/dev/null) > if [ $? -ne 0 ]; then > if [ ${do_log} -ne 0 ]; then > log "FAIL" "Failed to send data to the host ${nc_host}:${nc_port}, is network or host down?" >-- >2.37.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 265389
: 235432