JoeDog / siege

Siege is an http load tester and benchmarking utility
GNU General Public License v3.0
5.91k stars 386 forks source link

SIEGE 4.0.5: [error] socket: unable to connect sock.c:282: Connection refused #176

Closed mahnunchik closed 3 years ago

mahnunchik commented 4 years ago

Hi,

I've faced with permanent error:

[error] socket: unable to connect sock.c:282: Connection refused

SIEGE 4.0.5 macOS 10.15.4

siege installed from brew.

JoeDog commented 4 years ago

Do any connections succeed? How many users are you using?

I don't know anything about that distribution. You can try running it with -D / --debug to see if it offers anything enlightening.

Jeff

On Thu, Mar 26, 2020 at 6:00 AM Evgeny notifications@github.com wrote:

Hi,

I've faced with permanent error:

[error] socket: unable to connect sock.c:282: Connection refused

SIEGE 4.0.5 macOS 10.15.4

siege installed from brew.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQIU75NCKHCIFAGCTLRJMRSDANCNFSM4LUDFRMQ .

mahnunchik commented 4 years ago

My command siege --internet --time=1m --concurrent=20

It works as expected first or maybe second launch but falls later for some time.

JoeDog commented 4 years ago

How many threads is the server configured to run?

On Thu, Mar 26, 2020 at 9:45 AM Evgeny notifications@github.com wrote:

My command siege --internet --time=1m --concurrent=20

It works as expected first or maybe second launch but falls later for some time.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-604439429, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZSMBWA735JY2QDGGC3RJNL7RANCNFSM4LUDFRMQ .

mahnunchik commented 4 years ago

I don't know how the server was configured but the same command is success from the Linux machine but not success from laptop with macOS 10.15.4.

JoeDog commented 4 years ago

You'll probably have to take this to the distributor of the binary.

If you want to try a strace I might be able to help you with the bug report.

strace siege --internet --time=1m --concurrent=20

On Thu, Mar 26, 2020 at 10:20 AM Evgeny notifications@github.com wrote:

I don't know how the server was configured but the same command is success from the Linux machine but not success from laptop with macOS 10.15.4.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-604458141, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZV6B2VGAXZSBL332ETRJNQDZANCNFSM4LUDFRMQ .

mahnunchik commented 4 years ago

Sorry it is on macOS, it doesn't have strace.

There are a lot of errors after first 1-2 minutes of testing:

[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
[error] socket: unable to connect sock.c:282: Connection refused
JoeDog commented 4 years ago

Does MacOS have restrictive kernel settings out of the box? You could be running up against file limits, socket limits, thread limits, etc. What happens if you run it as the root user?

On Sat, Mar 28, 2020 at 2:23 PM Evgeny notifications@github.com wrote:

Sorry it is on macOS, it doesn't have strace.

There are a lot of errors after first 1-2 minutes of testing:

[error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused [error] socket: unable to connect sock.c:282: Connection refused

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-605499693, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZWPXTZ3QNHOVHWL62LRJY6B3ANCNFSM4LUDFRMQ .

mahnunchik commented 4 years ago

What happens if you run it as the root user?

The same.

I've tried the following from https://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1/443168

JoeDog commented 4 years ago

A strace would be really helpful.

On Mon, Mar 30, 2020 at 1:42 PM Evgeny notifications@github.com wrote:

What happens if you run it as the root user?

The same.

I've tried the following from https://superuser.com/questions/433746/is-there-a-fix-for-the-too-many-open-files-in-system-error-on-os-x-10-7-1/443168

  • sudo sysctl -w kern.maxfiles=20480
  • sudo sysctl -w kern.maxfilesperproc=18000
  • ulimit -S -n 4096
  • sudo ulimit -S -n 4096

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-606142672, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZV4AP45YCSSOBYD2XDRKDKZ7ANCNFSM4LUDFRMQ .

mahnunchik commented 4 years ago
sudo dtruss siege --file=urls.txt --internet --time=1m --concurrent=50 --log=siege-new.log --quiet

Log of dtruss https://gist.github.com/mahnunchik/a3504393d1f74d070e33327529b4ddc1

JoeDog commented 4 years ago

I googled these errors and it took me down a MacOS hole. Unfortunately, I don't know anything about the platform.

invalid kernel access in action #12 at DIF offset 68

It looks like something is blocking your system calls. One possible culprit I saw discussed was iTunes.

On Mon, Mar 30, 2020 at 3:04 PM Evgeny notifications@github.com wrote:

sudo dtruss siege --file=urls.txt --internet --time=1m --concurrent=50 --log=siege-new.log --quiet

Log of dtruss https://gist.github.com/mahnunchik/a3504393d1f74d070e33327529b4ddc1

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-606183887, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZTWZLIDC2DD3F3KPNTRKDUNHANCNFSM4LUDFRMQ .

mahnunchik commented 4 years ago

We definitely need MacOS expert to solve it...

mrsmith commented 4 years ago

Here is a dtrace output for a single given fd:

close_nocancel(0x1D)         = 0 0
fcntl(0x1D, 0x2, 0x4)        = 0 0
fcntl(0x1D, 0x3, 0x0)        = 20
fcntl(0x1D, 0x4, 0x6)        = 0 0
connect(0x1D, 0x700003B0AB20, 0x10)      = -1 36
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 ocancel0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 ���0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 /  0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 close_nocancel0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7dtrace: error on enabled probe ID 2186 (ID 165: syscall::read:return): invalid kernel access in action #12 at DIF offset 68
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 *0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 ����0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DAB40, 0x7000042DABC0, 0x0, 0x7000042DAC40)        = 1 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x7000042DABB0, 0x7000042DAC30, 0x0, 0x7000042DACB0)        = 2 0
select(0x1D, 0x70000433A9C0, 0x70000433AA40, 0x0, 0x70000433AAC0)        = 2 /  0
connect(0x1D, 0x700004028B20, 0x10)      = -1 61
close(0x1D)      = 0 0

Why would it keep spinning with a positive return value?

https://github.com/JoeDog/siege/blob/master/src/sock.c#L374

aborealis commented 3 years ago

Hi there,

I have the same issue on Kali Linux. The socket.c 282 error happens only when I try to connect to localhost.

So if I write siege -v -r1 -c1 https://localhost I have got an error. Though if I change it to siege -v -r1 -c1 https://127.0.0.1 or siege -v -r1 -c1 https://192.168.100.8 it works perfectly fine.

Note: I have self signed ssl certificate installed on my local machine, that is why https:// is used.

I think there is a bug in the latest release somewhere.

Just in case here are the details to track:

Version: SIEGE 4.0.7. strace log for siege -v -r1 -c1 https://localhost is below

The string worth attention in the log is

futex(0x7f40a20e39d0, FUTEX_WAIT, 4740, NULL[error] socket: unable to connect sock.c:282: Connection refused
) = 0

execve("/usr/bin/siege", ["siege", "-v", "-r1", "-c1", "https://localhost"], 0x7ffeb6b0cbd0 /* 54 vars */) = 0 brk(NULL) = 0x5596e26c3000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=88568, ...}) = 0 mmap(NULL, 88568, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f40a267c000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 |\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=149608, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a267a000 mmap(NULL, 136304, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a2658000 mmap(0x7f40a265f000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f40a265f000 mmap(0x7f40a266f000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f40a266f000 mmap(0x7f40a2674000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f40a2674000 mmap(0x7f40a2676000, 13424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a2676000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\364\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=597792, ...}) = 0 mmap(NULL, 600368, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a25c5000 mprotect(0x7f40a25e2000, 430080, PROT_NONE) = 0 mmap(0x7f40a25e2000, 319488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x7f40a25e2000 mmap(0x7f40a2630000, 106496, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b000) = 0x7f40a2630000 mmap(0x7f40a264b000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x85000) = 0x7f40a264b000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\t\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=3076960, ...}) = 0 mmap(NULL, 3096464, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22d1000 mprotect(0x7f40a2357000, 2326528, PROT_NONE) = 0 mmap(0x7f40a2357000, 1732608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x86000) = 0x7f40a2357000 mmap(0x7f40a24fe000, 589824, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22d000) = 0x7f40a24fe000 mmap(0x7f40a258f000, 204800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2bd000) = 0x7f40a258f000 mmap(0x7f40a25c1000, 16272, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a25c1000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0203\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=113088, ...}) = 0 mmap(NULL, 115088, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22b4000 mprotect(0x7f40a22b7000, 98304, PROT_NONE) = 0 mmap(0x7f40a22b7000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a22b7000 mmap(0x7f40a22c8000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f40a22c8000 mmap(0x7f40a22cf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f40a22cf000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@n\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0 mmap(NULL, 1852680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20ef000 mprotect(0x7f40a2114000, 1662976, PROT_NONE) = 0 mmap(0x7f40a2114000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f40a2114000 mmap(0x7f40a225f000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x7f40a225f000 mmap(0x7f40a22aa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f40a22aa000 mmap(0x7f40a22b0000, 13576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a22b0000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=18688, ...}) = 0 mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20e9000 mmap(0x7f40a20ea000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f40a20ea000 mmap(0x7f40a20ec000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ec000 mmap(0x7f40a20ed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ed000 close(3) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e7000 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e4000 arch_prctl(ARCH_SET_FS, 0x7f40a20e4740) = 0 mprotect(0x7f40a22aa000, 12288, PROT_READ) = 0 mprotect(0x7f40a20ed000, 4096, PROT_READ) = 0 mprotect(0x7f40a22cf000, 4096, PROT_READ) = 0 mprotect(0x7f40a2674000, 4096, PROT_READ) = 0 mprotect(0x7f40a258f000, 196608, PROT_READ) = 0 mprotect(0x7f40a264b000, 36864, PROT_READ) = 0 mprotect(0x5596e2604000, 8192, PROT_READ) = 0 mprotect(0x7f40a26bc000, 4096, PROT_READ) = 0 munmap(0x7f40a267c000, 88568) = 0 set_tid_address(0x7f40a20e4a10) = 4739 set_robust_list(0x7f40a20e4a20, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7f40a265f690, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f40a265f730, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0 brk(NULL) = 0x5596e26c3000 brk(0x5596e26e4000) = 0x5596e26e4000 rt_sigprocmask(SIG_BLOCK, [HUP INT PIPE ALRM TERM], NULL, 8) = 0 stat("/home/aborealis/.siege", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 stat("/home/aborealis/.siege/siege.conf", {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/siege.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 read(3, "# Updated by Siege %_VERSION%, %"..., 4096) = 4096 read(3, " = ib.adnxs.com\n\n#\n# CSV Verbose"..., 4096) = 4096 read(3, "d line takes precedent over this"..., 4096) = 4096 read(3, "let it. Set this to \n# false fo"..., 4096) = 4096 brk(0x5596e2705000) = 0x5596e2705000 brk(0x5596e2704000) = 0x5596e2704000 read(3, "#\n# ex: login = jdfulmer:topsecr"..., 4096) = 4096 read(3, "gin \n# as long as each one has a"..., 4096) = 765 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c3818, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c380c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3804, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c38d8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37f0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37e8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c0c5c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c36c4, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c365c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3650, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37fc, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/usr/lib/ssl/openssl.cnf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=11118, ...}) = 0 read(3, "#\n# OpenSSL example configuratio"..., 4096) = 4096 read(3, "F8Strings).\n# MASK:XXXX a litera"..., 4096) = 4096 read(3, "icConstraints=CA:FALSE\n\n# Here a"..., 4096) = 2926 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c37e0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a2657840, FUTEX_WAKE_PRIVATE, 2147483647) = 0 sysinfo({uptime=2768, loads=[17632, 17568, 21472], totalram=8256393216, freeram=5200592896, sharedram=334893056, bufferram=83705856, totalswap=20002631680, freeswap=20002631680, procs=600, totalhigh=0, freehigh=0, mem_unit=1}) = 0 futex(0x7f40a2657928, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a265791c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 close(3) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 brk(0x5596e2726000) = 0x5596e2726000 fstat(3, {st_mode=S_IFREG|0644, st_size=575, ...}) = 0 read(3, "#\n# Siege cookies file. You may "..., 4096) = 575 brk(0x5596e2751000) = 0x5596e2751000 read(3, "", 4096) = 0 close(3) = 0 openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = 3 read(3, "X5\f\337", 4) = 4 close(3) = 0 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a18e3000 mprotect(0x7f40a18e4000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a20e2fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4740], tls=0x7f40a20e3700, child_tidptr=0x7f40a20e39d0) = 4740 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a10e2000 mprotect(0x7f40a10e3000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a18e1fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4741], tls=0x7f40a18e2700, child_tidptr=0x7f40a18e29d0) = 4741 times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 futex(0x5596e271b1a8, FUTEX_WAKE_PRIVATE, 2147483647) = 1 futex(0x5596e271b158, FUTEX_WAKE_PRIVATE, 1) = 1 **futex(0x7f40a20e39d0, FUTEX_WAIT, 4740, NULL[error] socket: unable to connect sock.c:282: Connection refused ) = 0** times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=10000000}, NULL) = 0 write(2, "\n", 1 ) = 1 fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0), ...}) = 0 write(1, "{\t\"transactions\":\t\t\t 0"..., 34{ "transactions": 0, ) = 34 write(1, "\t\"availability\":\t\t\t 0.00,"..., 33 "availability": 0.00, ) = 33 write(1, "\t\"elapsed_time\":\t\t\t 0.00,"..., 33 "elapsed_time": 0.00, ) = 33 write(1, "\t\"data_transferred\":\t\t 0."..., 36 "data_transferred": 0.00, ) = 36 write(1, "\t\"response_time\":\t\t 0.00,"..., 33 "response_time": 0.00, ) = 33 write(1, "\t\"transaction_rate\":\t\t 0."..., 36 "transaction_rate": 0.00, ) = 36 write(1, "\t\"throughput\":\t\t\t 0.00,\n", 31 "throughput": 0.00, ) = 31 write(1, "\t\"concurrency\":\t\t\t 0.00,\n", 32 "concurrency": 0.00, ) = 32 write(1, "\t\"successful_transactions\":\t "..., 42 "successful_transactions": 0, ) = 42 write(1, "\t\"failed_transactions\":\t\t "..., 39 "failed_transactions": 1, ) = 39 write(1, "\t\"longest_transaction\":\t\t "..., 39 "longest_transaction": 0.00, ) = 39 write(1, "\t\"shortest_transaction\":\t\t "..., 39 "shortest_transaction": 0.00 ) = 39 write(1, "}\n", 2} ) = 2 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 write(3, "#\n# Siege cookies file. You may "..., 575) = 575 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++

JoeDog commented 3 years ago

Well that's weird. I'll try to reproduce this. Thanks for the additional input

On Sun, Apr 25, 2021 at 3:46 AM aborealis @.***> wrote:

Hi there,

I have the same issue on Kali Linux. The socket.c 282 error happens only when I try to connect to localhost.

So if I write siege -v -r1 -c1 https://localhost I have got an error. Though if I change it to siege -v -r1 -c1 https://127.0.0.1 or siege -v -r1 -c1 https://192.168.100.8 it works perfectly fine.

Note: I have self signed ssl certificate installed on my local machine, that is why https:// is used.

I think there is a bug in the latest release somewhere.

Just in case here are the details to track:

Version: SIEGE 4.0.7. strace log for siege -v -r1 -c1 https://localhost execve("/usr/bin/siege", ["siege", "-v", "-r1", "-c1", "https://localhost"], 0x7ffeb6b0cbd0 / 54 vars /) = 0 brk(NULL) = 0x5596e26c3000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=88568, ...}) = 0 mmap(NULL, 88568, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f40a267c000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 |\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=149608, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a267a000 mmap(NULL, 136304, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a2658000 mmap(0x7f40a265f000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f40a265f000 mmap(0x7f40a266f000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f40a266f000 mmap(0x7f40a2674000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f40a2674000 mmap(0x7f40a2676000, 13424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a2676000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\364\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=597792, ...}) = 0 mmap(NULL, 600368, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a25c5000 mprotect(0x7f40a25e2000, 430080, PROT_NONE) = 0 mmap(0x7f40a25e2000, 319488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x7f40a25e2000 mmap(0x7f40a2630000, 106496, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b000) = 0x7f40a2630000 mmap(0x7f40a264b000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x85000) = 0x7f40a264b000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\t\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=3076960, ...}) = 0 mmap(NULL, 3096464, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22d1000 mprotect(0x7f40a2357000, 2326528, PROT_NONE) = 0 mmap(0x7f40a2357000, 1732608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x86000) = 0x7f40a2357000 mmap(0x7f40a24fe000, 589824, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22d000) = 0x7f40a24fe000 mmap(0x7f40a258f000, 204800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2bd000) = 0x7f40a258f000 mmap(0x7f40a25c1000, 16272, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a25c1000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0203\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=113088, ...}) = 0 mmap(NULL, 115088, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22b4000 mprotect(0x7f40a22b7000, 98304, PROT_NONE) = 0 mmap(0x7f40a22b7000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a22b7000 mmap(0x7f40a22c8000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f40a22c8000 mmap(0x7f40a22cf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f40a22cf000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, @.\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0 mmap(NULL, 1852680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20ef000 mprotect(0x7f40a2114000, 1662976, PROT_NONE) = 0 mmap(0x7f40a2114000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f40a2114000 mmap(0x7f40a225f000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x7f40a225f000 mmap(0x7f40a22aa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f40a22aa000 mmap(0x7f40a22b0000, 13576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a22b0000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=18688, ...}) = 0 mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20e9000 mmap(0x7f40a20ea000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f40a20ea000 mmap(0x7f40a20ec000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ec000 mmap(0x7f40a20ed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ed000 close(3) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e7000 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e4000 arch_prctl(ARCH_SET_FS, 0x7f40a20e4740) = 0 mprotect(0x7f40a22aa000, 12288, PROT_READ) = 0 mprotect(0x7f40a20ed000, 4096, PROT_READ) = 0 mprotect(0x7f40a22cf000, 4096, PROT_READ) = 0 mprotect(0x7f40a2674000, 4096, PROT_READ) = 0 mprotect(0x7f40a258f000, 196608, PROT_READ) = 0 mprotect(0x7f40a264b000, 36864, PROT_READ) = 0 mprotect(0x5596e2604000, 8192, PROT_READ) = 0 mprotect(0x7f40a26bc000, 4096, PROT_READ) = 0 munmap(0x7f40a267c000, 88568) = 0 set_tid_address(0x7f40a20e4a10) = 4739 set_robust_list(0x7f40a20e4a20, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7f40a265f690, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f40a265f730, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=81921024, rlim_max=RLIM64_INFINITY}) = 0 brk(NULL) = 0x5596e26c3000 brk(0x5596e26e4000) = 0x5596e26e4000 rt_sigprocmask(SIG_BLOCK, [HUP INT PIPE ALRM TERM], NULL, 8) = 0 stat("/home/aborealis/.siege", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 stat("/home/aborealis/.siege/siege.conf", {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/siege.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 read(3, "# Updated by Siege %_VERSION%, %"..., 4096) = 4096 read(3, " = ib.adnxs.com\n\n#\n# CSV Verbose"..., 4096) = 4096 read(3, "d line takes precedent over this"..., 4096) = 4096 read(3, "let it. Set this to \n# false fo"..., 4096) = 4096 brk(0x5596e2705000) = 0x5596e2705000 brk(0x5596e2704000) = 0x5596e2704000 read(3, "#\n# ex: login = jdfulmer:topsecr"..., 4096) = 4096 read(3, "gin \n# as long as each one has a"..., 4096) = 765 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c3818, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c380c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3804, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c38d8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37f0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37e8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c0c5c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c36c4, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c365c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3650, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37fc, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/usr/lib/ssl/openssl.cnf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=11118, ...}) = 0 read(3, "#\n# OpenSSL example configuratio"..., 4096) = 4096 read(3, "F8Strings).\n# MASK:XXXX a litera"..., 4096) = 4096 read(3, "icConstraints=CA:FALSE\n\n# Here a"..., 4096) = 2926 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c37e0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a2657840, FUTEX_WAKE_PRIVATE, 2147483647) = 0 sysinfo({uptime=2768, loads=[17632, 17568, 21472], totalram=8256393216, freeram=5200592896, sharedram=334893056, bufferram=83705856, totalswap=20002631680, freeswap=20002631680, procs=600, totalhigh=0, freehigh=0, mem_unit=1}) = 0 futex(0x7f40a2657928, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a265791c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 close(3) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 brk(0x5596e2726000) = 0x5596e2726000 fstat(3, {st_mode=S_IFREG|0644, st_size=575, ...}) = 0 read(3, "#\n# Siege cookies file. You may "..., 4096) = 575 brk(0x5596e2751000) = 0x5596e2751000 read(3, "", 4096) = 0 close(3) = 0 openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = 3 read(3, "X5\f\337", 4) = 4 close(3) = 0 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a18e3000 mprotect(0x7f40a18e4000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a20e2fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4740], tls=0x7f40a20e3700, child_tidptr=0x7f40a20e39d0) = 4740 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a10e2000 mprotect(0x7f40a10e3000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a18e1fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4741], tls=0x7f40a18e2700, child_tidptr=0x7f40a18e29d0) = 4741 times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 futex(0x5596e271b1a8, FUTEX_WAKE_PRIVATE, 2147483647) = 1 futex(0x5596e271b158, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x7f40a20e39d0, FUTEX_WAIT, 4740, NULL[error] socket: unable to connect sock.c:282: Connection refused ) = 0** times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=10000000}, NULL) = 0 write(2, "\n", 1 ) = 1 fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0), ...}) = 0 write(1, "{\t\"transactions\":\t\t\t 0"..., 34{ "transactions": 0, ) = 34 write(1, "\t\"availability\":\t\t\t 0.00,"..., 33 "availability": 0.00, ) = 33 write(1, "\t\"elapsed_time\":\t\t\t 0.00,"..., 33 "elapsed_time": 0.00, ) = 33 write(1, "\t\"data_transferred\":\t\t 0."..., 36 "data_transferred": 0.00, ) = 36 write(1, "\t\"response_time\":\t\t 0.00,"..., 33 "response_time": 0.00, ) = 33 write(1, "\t\"transaction_rate\":\t\t 0."..., 36 "transaction_rate": 0.00, ) = 36 write(1, "\t\"throughput\":\t\t\t 0.00,\n", 31 "throughput": 0.00, ) = 31 write(1, "\t\"concurrency\":\t\t\t 0.00,\n", 32 "concurrency": 0.00, ) = 32 write(1, "\t\"successful_transactions\":\t "..., 42 "successful_transactions": 0, ) = 42 write(1, "\t\"failed_transactions\":\t\t "..., 39 "failed_transactions": 1, ) = 39 write(1, "\t\"longest_transaction\":\t\t "..., 39 "longest_transaction": 0.00, ) = 39 write(1, "\t\"shortest_transaction\":\t\t "..., 39 "shortest_transaction": 0.00 ) = 39 write(1, "}\n", 2} ) = 2 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 write(3, "#\n# Siege cookies file. You may "..., 575) = 575 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-826276147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZT5YBYL3I6JRUNG7HTTKPCHFANCNFSM4LUDFRMQ .

-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

JoeDog commented 3 years ago

$ siege --json -c5 -r5 https://localhost/ { "transactions": 275, "availability": 100.00, "elapsed_time": 8.24, "data_transferred": 1.93, "response_time": 0.14, "transaction_rate": 33.37, "throughput": 0.23, "concurrency": 4.61, "successful_transactions": 275, "failed_transactions": 0, "longest_transaction": 1.06, "shortest_transaction": 0.00 }

What is the result of this:

dig localhost

I get this: ;; ANSWER SECTION: localhost. 136 IN A 127.0.0.1

netstat -an | grep -i listen tcp6 0 0 :::443 :::* LISTEN

On Sun, Apr 25, 2021 at 10:46 AM Jeff Fulmer @.***> wrote:

Well that's weird. I'll try to reproduce this. Thanks for the additional input

On Sun, Apr 25, 2021 at 3:46 AM aborealis @.***> wrote:

Hi there,

I have the same issue on Kali Linux. The socket.c 282 error happens only when I try to connect to localhost.

So if I write siege -v -r1 -c1 https://localhost I have got an error. Though if I change it to siege -v -r1 -c1 https://127.0.0.1 or siege -v -r1 -c1 https://192.168.100.8 it works perfectly fine.

Note: I have self signed ssl certificate installed on my local machine, that is why https:// is used.

I think there is a bug in the latest release somewhere.

Just in case here are the details to track:

Version: SIEGE 4.0.7. strace log for siege -v -r1 -c1 https://localhost execve("/usr/bin/siege", ["siege", "-v", "-r1", "-c1", "https://localhost"], 0x7ffeb6b0cbd0 / 54 vars /) = 0 brk(NULL) = 0x5596e26c3000 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=88568, ...}) = 0 mmap(NULL, 88568, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f40a267c000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0 |\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=149608, ...}) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a267a000 mmap(NULL, 136304, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a2658000 mmap(0x7f40a265f000, 65536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x7000) = 0x7f40a265f000 mmap(0x7f40a266f000, 20480, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f40a266f000 mmap(0x7f40a2674000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b000) = 0x7f40a2674000 mmap(0x7f40a2676000, 13424, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a2676000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libssl.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\364\1\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=597792, ...}) = 0 mmap(NULL, 600368, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a25c5000 mprotect(0x7f40a25e2000, 430080, PROT_NONE) = 0 mmap(0x7f40a25e2000, 319488, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1d000) = 0x7f40a25e2000 mmap(0x7f40a2630000, 106496, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6b000) = 0x7f40a2630000 mmap(0x7f40a264b000, 53248, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x85000) = 0x7f40a264b000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libcrypto.so.1.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\t\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=3076960, ...}) = 0 mmap(NULL, 3096464, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22d1000 mprotect(0x7f40a2357000, 2326528, PROT_NONE) = 0 mmap(0x7f40a2357000, 1732608, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x86000) = 0x7f40a2357000 mmap(0x7f40a24fe000, 589824, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x22d000) = 0x7f40a24fe000 mmap(0x7f40a258f000, 204800, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2bd000) = 0x7f40a258f000 mmap(0x7f40a25c1000, 16272, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a25c1000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0203\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=113088, ...}) = 0 mmap(NULL, 115088, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a22b4000 mprotect(0x7f40a22b7000, 98304, PROT_NONE) = 0 mmap(0x7f40a22b7000, 69632, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a22b7000 mmap(0x7f40a22c8000, 24576, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7f40a22c8000 mmap(0x7f40a22cf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f40a22cf000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3 read(3, @.\2\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0755, st_size=1839792, ...}) = 0 mmap(NULL, 1852680, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20ef000 mprotect(0x7f40a2114000, 1662976, PROT_NONE) = 0 mmap(0x7f40a2114000, 1355776, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x25000) = 0x7f40a2114000 mmap(0x7f40a225f000, 303104, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x170000) = 0x7f40a225f000 mmap(0x7f40a22aa000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ba000) = 0x7f40a22aa000 mmap(0x7f40a22b0000, 13576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f40a22b0000 close(3) = 0 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3 read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0000\21\0\0\0\0\0\0"..., 832) = 832 fstat(3, {st_mode=S_IFREG|0644, st_size=18688, ...}) = 0 mmap(NULL, 20752, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f40a20e9000 mmap(0x7f40a20ea000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0x7f40a20ea000 mmap(0x7f40a20ec000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ec000 mmap(0x7f40a20ed000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f40a20ed000 close(3) = 0 mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e7000 mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f40a20e4000 arch_prctl(ARCH_SET_FS, 0x7f40a20e4740) = 0 mprotect(0x7f40a22aa000, 12288, PROT_READ) = 0 mprotect(0x7f40a20ed000, 4096, PROT_READ) = 0 mprotect(0x7f40a22cf000, 4096, PROT_READ) = 0 mprotect(0x7f40a2674000, 4096, PROT_READ) = 0 mprotect(0x7f40a258f000, 196608, PROT_READ) = 0 mprotect(0x7f40a264b000, 36864, PROT_READ) = 0 mprotect(0x5596e2604000, 8192, PROT_READ) = 0 mprotect(0x7f40a26bc000, 4096, PROT_READ) = 0 munmap(0x7f40a267c000, 88568) = 0 set_tid_address(0x7f40a20e4a10) = 4739 set_robust_list(0x7f40a20e4a20, 24) = 0 rt_sigaction(SIGRTMIN, {sa_handler=0x7f40a265f690, sa_mask=[], sa_flags=SA_RESTORER|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigaction(SIGRT_1, {sa_handler=0x7f40a265f730, sa_mask=[], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f40a266c140}, NULL, 8) = 0 rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0 prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=81921024, rlim_max=RLIM64_INFINITY}) = 0 brk(NULL) = 0x5596e26c3000 brk(0x5596e26e4000) = 0x5596e26e4000 rt_sigprocmask(SIG_BLOCK, [HUP INT PIPE ALRM TERM], NULL, 8) = 0 stat("/home/aborealis/.siege", {st_mode=S_IFDIR|0750, st_size=4096, ...}) = 0 stat("/home/aborealis/.siege/siege.conf", {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/siege.conf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=21245, ...}) = 0 read(3, "# Updated by Siege %_VERSION%, %"..., 4096) = 4096 read(3, " = ib.adnxs.com\n\n#\n# CSV Verbose"..., 4096) = 4096 read(3, "d line takes precedent over this"..., 4096) = 4096 read(3, "let it. Set this to \n# false fo"..., 4096) = 4096 brk(0x5596e2705000) = 0x5596e2705000 brk(0x5596e2704000) = 0x5596e2704000 read(3, "#\n# ex: login = jdfulmer:topsecr"..., 4096) = 4096 read(3, "gin \n# as long as each one has a"..., 4096) = 765 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c3818, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c380c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3804, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c38d8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37f0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37e8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c0c5c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c36c4, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c365c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c3650, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37fc, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b8, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a25c37b0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/usr/lib/ssl/openssl.cnf", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=11118, ...}) = 0 read(3, "#\n# OpenSSL example configuratio"..., 4096) = 4096 read(3, "F8Strings).\n# MASK:XXXX a litera"..., 4096) = 4096 read(3, "icConstraints=CA:FALSE\n\n# Here a"..., 4096) = 2926 read(3, "", 4096) = 0 close(3) = 0 futex(0x7f40a25c37e0, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a2657840, FUTEX_WAKE_PRIVATE, 2147483647) = 0 sysinfo({uptime=2768, loads=[17632, 17568, 21472], totalram=8256393216, freeram=5200592896, sharedram=334893056, bufferram=83705856, totalswap=20002631680, freeswap=20002631680, procs=600, totalhigh=0, freehigh=0, mem_unit=1}) = 0 futex(0x7f40a2657928, FUTEX_WAKE_PRIVATE, 2147483647) = 0 futex(0x7f40a265791c, FUTEX_WAKE_PRIVATE, 2147483647) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 close(3) = 0 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_RDONLY) = 3 brk(0x5596e2726000) = 0x5596e2726000 fstat(3, {st_mode=S_IFREG|0644, st_size=575, ...}) = 0 read(3, "#\n# Siege cookies file. You may "..., 4096) = 575 brk(0x5596e2751000) = 0x5596e2751000 read(3, "", 4096) = 0 close(3) = 0 openat(AT_FDCWD, "/dev/urandom", O_RDONLY) = 3 read(3, "X5\f\337", 4) = 4 close(3) = 0 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a18e3000 mprotect(0x7f40a18e4000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a20e2fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4740], tls=0x7f40a20e3700, child_tidptr=0x7f40a20e39d0) = 4740 mmap(NULL, 8392704, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_STACK, -1, 0) = 0x7f40a10e2000 mprotect(0x7f40a10e3000, 8388608, PROT_READ|PROT_WRITE) = 0 clone(child_stack=0x7f40a18e1fb0, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND|CLONE_THREAD|CLONE_SYSVSEM|CLONE_SETTLS|CLONE_PARENT_SETTID|CLONE_CHILD_CLEARTID, parent_tid=[4741], tls=0x7f40a18e2700, child_tidptr=0x7f40a18e29d0) = 4741 times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 futex(0x5596e271b1a8, FUTEX_WAKE_PRIVATE, 2147483647) = 1 futex(0x5596e271b158, FUTEX_WAKE_PRIVATE, 1) = 1 futex(0x7f40a20e39d0, FUTEX_WAIT, 4740, NULL[error] socket: unable to connect sock.c:282: Connection refused ) = 0** times({tms_utime=0, tms_stime=0, tms_cutime=0, tms_cstime=0}) = 1718233684 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=10000000}, NULL) = 0 write(2, "\n", 1 ) = 1 fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0), ...}) = 0 write(1, "{\t\"transactions\":\t\t\t 0"..., 34{ "transactions": 0, ) = 34 write(1, "\t\"availability\":\t\t\t 0.00,"..., 33 "availability": 0.00, ) = 33 write(1, "\t\"elapsed_time\":\t\t\t 0.00,"..., 33 "elapsed_time": 0.00, ) = 33 write(1, "\t\"data_transferred\":\t\t 0."..., 36 "data_transferred": 0.00, ) = 36 write(1, "\t\"response_time\":\t\t 0.00,"..., 33 "response_time": 0.00, ) = 33 write(1, "\t\"transaction_rate\":\t\t 0."..., 36 "transaction_rate": 0.00, ) = 36 write(1, "\t\"throughput\":\t\t\t 0.00,\n", 31 "throughput": 0.00, ) = 31 write(1, "\t\"concurrency\":\t\t\t 0.00,\n", 32 "concurrency": 0.00, ) = 32 write(1, "\t\"successful_transactions\":\t "..., 42 "successful_transactions": 0, ) = 42 write(1, "\t\"failed_transactions\":\t\t "..., 39 "failed_transactions": 1, ) = 39 write(1, "\t\"longest_transaction\":\t\t "..., 39 "longest_transaction": 0.00, ) = 39 write(1, "\t\"shortest_transaction\":\t\t "..., 39 "shortest_transaction": 0.00 ) = 39 write(1, "}\n", 2} ) = 2 openat(AT_FDCWD, "/home/aborealis/.siege/cookies.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0 write(3, "#\n# Siege cookies file. You may "..., 575) = 575 close(3) = 0 exit_group(0) = ? +++ exited with 0 +++

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-826276147, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZT5YBYL3I6JRUNG7HTTKPCHFANCNFSM4LUDFRMQ .

-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

nooblag commented 2 years ago

I'm getting this with Siege version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282":

[error] socket: unable to connect sock.c:249: Connection refused

JoeDog commented 1 year ago

How many siege users are you running and how many threads does the web server have?

This typically happens when you simulate more users than the web server can handle.

On Sat, Aug 20, 2022 at 4:03 AM Jore @.***> wrote:

I'm getting this on version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282":

[error] socket: unable to connect sock.c:249: Connection refused

— Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-1221254358, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

hashimaziz1 commented 1 year ago

How many siege users are you running and how many threads does the web server have? This typically happens when you simulate more users than the web server can handle. On Sat, Aug 20, 2022 at 4:03 AM Jore @.> wrote: I'm getting this on version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282": [error] socket: unable to connect sock.c:249: Connection refused — Reply to this email directly, view it on GitHub <#176 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.> -- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

Are you saying this is expected behaviour? Because if so, a less cryptic error message and some mention of it in the documentation is probably needed. I'm getting the same error on Windows (via Cygwin).

JoeDog commented 1 year ago

It's discussed on the website but since I moved the code to github, nobody goes there.

The problem is at the socket level there are many reasons why the connection could be refused after the socket is made. A more precise error message could help some in one situation and mislead them in others.

On Thu, Feb 2, 2023 at 5:04 PM Hashim Aziz @.***> wrote:

How many siege users are you running and how many threads does the web server have? This typically happens when you simulate more users than the web server can handle. … <#m-48589248458368901> On Sat, Aug 20, 2022 at 4:03 AM Jore @.> wrote: I'm getting this on version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282": [error] socket: unable to connect sock.c:249: Connection refused — Reply to this email directly, view it on GitHub <#176 (comment) https://github.com/JoeDog/siege/issues/176#issuecomment-1221254358>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.> -- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

Are you saying this is expected behaviour? Because if so, a less cryptic error message and some mention of it in the documentation is probably in need. I'm getting the same error on Windows (via Cygwin).

— Reply to this email directly, view it on GitHub https://github.com/JoeDog/siege/issues/176#issuecomment-1414436290, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQZRQ7OWO4ZO7WK2UDWVQVQNANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.***>

-- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

hashimaziz1 commented 1 year ago

It's discussed on the website but since I moved the code to github, nobody goes there. The problem is at the socket level there are many reasons why the connection could be refused after the socket is made. A more precise error message could help some in one situation and mislead them in others. On Thu, Feb 2, 2023 at 5:04 PM Hashim Aziz @.> wrote: How many siege users are you running and how many threads does the web server have? This typically happens when you simulate more users than the web server can handle. … <#m-48589248458368901> On Sat, Aug 20, 2022 at 4:03 AM Jore @.> wrote: I'm getting this on version 4.0.5 on Linux Mint 20.3, but "error 249" instead of "282": [error] socket: unable to connect sock.c:249: Connection refused — Reply to this email directly, view it on GitHub <#176 (comment) <#176 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ https://github.com/notifications/unsubscribe-auth/ABJRHZQT4KNMTFRJD4BNPW3V2CGL3ANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.> -- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes Are you saying this is expected behaviour? Because if so, a less cryptic error message and some mention of it in the documentation is probably in need. I'm getting the same error on Windows (via Cygwin). — Reply to this email directly, view it on GitHub <#176 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABJRHZQZRQ7OWO4ZO7WK2UDWVQVQNANCNFSM4LUDFRMQ . You are receiving this because you modified the open/close state.Message ID: @.> -- Jeff Fulmer 1-717-799-8226 https://www.joedog.org/ He codes

Fair enough, I can't argue with that reasoning.

Regarding the website, I actually did visit it twice, but I'm a web dev so I tend to do that as a first resort anyway. I didn't notice the FAQ or Manual sections that first time so maybe these should be made more prominent on the homepage. Going back to look at the website for a deeper look (which 95% of users probably won't) I also noticed that there's a version 4 of the tool that isn't included under the latest releases on the home page. If not intentional, that should probably be rectified.

roymckenzie commented 2 months ago

What solved this for me on my mac was setting my node server to listen to a specific host '0.0.0.0' as it defaulted to listening on ::1 (IPv6 loopback address) and not on 127.0.0.1 (IPv4 loopback address). Siege might be having trouble connecting because it defaults to IPv4?