Your message dated Fri, 02 Mar 2018 16:31:17 -0500
with message-id <87lgfap3kq....@curie.anarc.at>
and subject line Re: Bug#891940: pv not end after copy data
has caused the Debian Bug report #891940,
regarding pv not end after copy data
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
891940: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891940
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: pv
Version: 1.6.0-1+b1

After copy data with pv+netcat pv not stop and infinitely expects data before pressing ctrl + c

Step to reproduce:

1) Run nc -l 127.0.0.1 19000 | cat >/dev/null
2) Run  pv /dev/mapper/cuprumsrv-SWAP  |  nc 127.0.0.1 19000
3) Wait more and more time...

root@srv:~# pv /dev/mapper/MAIN-test  |  nc 127.0.0.1 19000
5,59GiB 0:00:04 [1,14GiB/s] [=============================================================================>] 100%
...

pv not end.

--- End Message ---
--- Begin Message ---
On 2018-03-02 23:05:40, Anton Gorlov wrote:
> Package: pv
> Version: 1.6.0-1+b1
>
> After copy data with pv+netcat pv not stop and infinitely expects data 
> before pressing ctrl + c
>
> Step to reproduce:
>
> 1) Run nc -l 127.0.0.1 19000 | cat >/dev/null
> 2) Run  pv /dev/mapper/cuprumsrv-SWAP  |  nc 127.0.0.1 19000
> 3) Wait more and more time...
>
> root@srv:~# pv /dev/mapper/MAIN-test  |  nc 127.0.0.1 19000
> 5,59GiB 0:00:04 [1,14GiB/s] 
> [=============================================================================>]
>  
> 100%
> ...
>
> pv not end.

This is not a bug in pv, but expected behavior from netcat:

$ nc -l -p 12345 > /dev/null & nc localhost 12345 < /dev/null
[1] 16443
...

this never ends. You want to pass -q 0 to netcat to fix this:

$ nc -l -p 12345 > /dev/null & nc localhost 12345 -q 0 < /dev/null
[1] 16510
[1]+  Fini                    nc -l -p 12345 > /dev/null
[1012]anarcat@curie:~$ 

A.

-- 
You can't conquer a free man; the most you can do is kill him.
                       -  Robert A. Heinlein

--- End Message ---

Reply via email to