#4923 closed bug (fixed)
netcat cuts off ending of stream
Reported by: | Adek336 | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1/beta2 |
Component: | Applications/Command Line Tools | Version: | R1/alpha1 |
Keywords: | Cc: | planche2k@… | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
On a computer running Linux
seq 1 100000 | nc -lp2222 -q1
On the Haiku computer
nc other-computer's-ip 2222 | less
and then go to line 99900 using the key sequence
:99900
Unfortunately, as we can see in less' output, Haiku's netcat is able to output only about 99850 lines out of the 100000 that have been sent.
If not reproducible, increase argument to seq.
If both instances of netcat are run on Linux boxen, all 100000 lines are output.
Change History (6)
comment:1 by , 15 years ago
Cc: | added |
---|
comment:2 by , 15 years ago
comment:3 by , 15 years ago
Another test case: tested with hrev35350, VirtualBox 3.1, Haiku guest Linux host: start ssh
server on Haiku. Try to connect to the ssh
server from the host. Sometimes - not always - fails - either connection reset errors, or ssh_authentication errors.
comment:5 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
No reply in 4 years, assuming indeed fixed.
comment:6 by , 5 years ago
Milestone: | R1 → R1/beta2 |
---|
Assign tickets with status=closed and resolution=fixed within the R1/beta2 development window to the R1/beta2 Milestone
Program writing hexadecimals to
hostn:2345
.Change hostn; compile the program under Haiku; run
nc -lp2345
on a linux box; run the program under Haiku. We observe that netcat receives lines of seven digit, zero padded hexadecimals. After a while, netcat starts to print only the three least significant digits of the numbers it should receive. Does not happen if the client program is run on linux. Reproducible with Haiku, under VirtualBox, hrev34335 hybr2.Additionally, if I create the file
a.c
with the contents ofint main() { }
and run the commandwhile true; do gcc a.c; done
in the background, the stream seems to get corrupted sooner.