[Bug 252884] www/gatling: does not listen on IPv4

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 22 03:19:31 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252884

--- Comment #1 from Song Bo Run <oldpopsong at 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=sizeof(workgroup_utf16);
     x=workgroup;
     y=workgroup_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 :(

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


More information about the freebsd-ports-bugs mailing list