[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libmicrohttpd] 107/156: test_client_put_stop: fixed test on Darwin
From: |
gnunet |
Subject: |
[libmicrohttpd] 107/156: test_client_put_stop: fixed test on Darwin |
Date: |
Sun, 28 May 2023 17:52:40 +0200 |
This is an automated email from the git hooks/post-receive script.
karlson2k pushed a commit to tag v0.9.77
in repository libmicrohttpd.
commit b89d0815c4e99d1d7d6be0818042a2019c658815
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
AuthorDate: Wed May 17 11:15:02 2023 +0300
test_client_put_stop: fixed test on Darwin
---
src/microhttpd/test_client_put_stop.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/src/microhttpd/test_client_put_stop.c
b/src/microhttpd/test_client_put_stop.c
index c1707c5c..a89d3586 100644
--- a/src/microhttpd/test_client_put_stop.c
+++ b/src/microhttpd/test_client_put_stop.c
@@ -303,8 +303,14 @@ test_global_init (void)
mib[1] = PF_INET;
mib[2] = IPPROTO_ICMP;
mib[3] = ICMPCTL_ICMPLIM;
- if ((0 != sysctl (mib, 4, &limit, &limit_size, NULL, 0)) ||
- (sizeof(limit) != limit_size) )
+ if (0 != sysctl (mib, 4, &limit, &limit_size, NULL, 0))
+ {
+ if (ENOENT == errno)
+ limit = 0; /* No such parameter (Darwin) */
+ else
+ externalErrorExitDesc ("Cannot get RST rate limit value");
+ }
+ else if (sizeof(limit) != limit_size)
externalErrorExitDesc ("Cannot get RST rate limit value");
if (limit > 0)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [libmicrohttpd] 94/156: test_postform: updated to support the new libcurl API, (continued)
- [libmicrohttpd] 94/156: test_postform: updated to support the new libcurl API, gnunet, 2023/05/28
- [libmicrohttpd] 96/156: autoinit_funcs.h: fixed compiler warning, gnunet, 2023/05/28
- [libmicrohttpd] 70/156: Upgraded TLS: fixed inefficient communication, gnunet, 2023/05/28
- [libmicrohttpd] 74/156: connection.c: fixed processing of folded headers, gnunet, 2023/05/28
- [libmicrohttpd] 81/156: contrib/make-dist.sh: added new helper script, gnunet, 2023/05/28
- [libmicrohttpd] 99/156: configure: fixed compiler warnings, gnunet, 2023/05/28
- [libmicrohttpd] 106/156: test_postprocessor_md: fixed build in C89 mode, gnunet, 2023/05/28
- [libmicrohttpd] 117/156: examples/sessions.c: improved safety, gnunet, 2023/05/28
- [libmicrohttpd] 82/156: Updated POTFILES.in, gnunet, 2023/05/28
- [libmicrohttpd] 76/156: Added test with folded header placed last, gnunet, 2023/05/28
- [libmicrohttpd] 107/156: test_client_put_stop: fixed test on Darwin,
gnunet <=
- [libmicrohttpd] 103/156: configure: renamed macro, gnunet, 2023/05/28
- [libmicrohttpd] 112/156: Added specific headers detection and include, gnunet, 2023/05/28
- [libmicrohttpd] 69/156: microhttpd.h: fixed typo in doxy, gnunet, 2023/05/28
- [libmicrohttpd] 66/156: configure: improved compatibility with POSIX, gnunet, 2023/05/28
- [libmicrohttpd] 67/156: configure: cosmetics: deleted extra spaces, gnunet, 2023/05/28
- [libmicrohttpd] 71/156: Fixed initialisation of old GnuTLS versions, gnunet, 2023/05/28
- [libmicrohttpd] 77/156: Added test with large folded header, gnunet, 2023/05/28
- [libmicrohttpd] 75/156: Added new tests with header fold, gnunet, 2023/05/28
- [libmicrohttpd] 83/156: autoinit_funcs.h: added functions prototypes, gnunet, 2023/05/28
- [libmicrohttpd] 80/156: Added autoconf patches and fixes, gnunet, 2023/05/28