[Bug 282495] Linuxulator sendfile returns EAGAIN repeatedly, actually repeatingly sending (the same) data
Date: Mon, 04 Nov 2024 19:11:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=282495 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |markj@FreeBSD.org --- Comment #1 from Mark Johnston <markj@FreeBSD.org> --- On main I compiled your program with: $ env GOOS=linux go build main.go $ brandelf -t Linux main then ran it with some dummy data: $ date > file2 $ ./main & $ nc -v localhost 4040 > testfile Entering loop, remain = 29 syscall returned n=29, err=%!s(<nil>) Sendfile syscall success, written: 29, remain: 0 Wrote 29 bytes, handled: %!s(bool=true)Connection to localhost 4040 port [tcp/*] succeeded! $ cat testfile Mon Nov 4 13:54:57 EST 2024 $ So something is different. Maybe something to do with the size of "file2"? Or the problem is in 14.1 but not FreeBSD-main. Or I don't quite understand the expected behaviour. -- You are receiving this mail because: You are the assignee for the bug.