diff options
author | Ron Yorston <rmy@pobox.com> | 2024-10-25 07:47:11 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-10-25 07:47:11 +0100 |
commit | 93678239bba121c8cb88c32aa5ea410b52c3f293 (patch) | |
tree | dec83f07fb98510e339e1bdd3026b97dcbdc4662 /libbb | |
parent | b4c70222a200314ce3805e96f7de94ceb57c79ea (diff) | |
download | busybox-w32-93678239bba121c8cb88c32aa5ea410b52c3f293.tar.gz busybox-w32-93678239bba121c8cb88c32aa5ea410b52c3f293.tar.bz2 busybox-w32-93678239bba121c8cb88c32aa5ea410b52c3f293.zip |
win32: workaround for pipe writability in poll(2)
A CGI script was found to hang when a large amount of data was
posted:
#!/bin/sh
echo "Content-type: text/plain;"
echo
if [ "$REQUEST_METHOD" = "POST" ]; then
dd of=my.dat bs=1 count=${CONTENT_LENGTH}
echo -n "success."
else
echo -n "error!"
fi
This appears to be due to problems determining whether a pipe is
writable on Windows. The Git for Windows project has a workaround
in their copy of GNUlib's poll(2) implementation. The details are
in the commit message:
https://github.com/git-for-windows/git/commit/94f4d01932279c419844aa708bec31a26056bc6b
Apply the same workaround here.
Saves 220-272 bytes.
(GitHub issue #468)
Diffstat (limited to 'libbb')
0 files changed, 0 insertions, 0 deletions