Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2021 03:19:31 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 252884] www/gatling: does not listen on IPv4
Message-ID:  <bug-252884-7788-jl2e2Kk7pc@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-252884-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-252884-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252884

--- Comment #1 from Song Bo Run <oldpopsong@qq.com> ---
change the content of patch-gatling.c to the following solves the problem:

--- gatling.c.orig      2021-01-22 11:07:51.264973000 +0800
+++ gatling.c   2021-01-22 11:07:51.264931000 +0800
@@ -100,7 +100,7 @@
 int forksock[2];
 #endif

-#if defined(__OpenBSD__) || defined(__NetBSD__)
+#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
 #define __broken_itojun_v6__
 #endif

@@ -1863,7 +1863,7 @@
     Y=3Dsizeof(workgroup_utf16);
     x=3Dworkgroup;
     y=3Dworkgroup_utf16;
-#ifdef __sun__
+#if defined(__sun__) || defined(__FreeBSD__)
     if (iconv(i,(const char**)&x,&X,&y,&Y)) panic("UTF-16 conversion of
workgroup failed.\n");
 #else
     if (iconv(i,&x,&X,&y,&Y)) panic("UTF-16 conversion of workgroup
failed.\n");


However gatling will complain that FreeBSD does not have real IPv6 support:

% gatling
WARNING: We are taking heavy losses working around itojun KAME madness here.
         Please consider using an operating system with real IPv6 support
instead!
starting_up 0 :: 8000
start_ftp 0 :: 2121

And the performance is far more bad comparing with Linux version :(

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252884-7788-jl2e2Kk7pc>