Open zpl opened 8 years ago
there is how it will looks like with my fix:
$ perl queue.pl
0
0
0
0
0
-1
-1
-1
-1
Hello. there is a bug.
example code:
now, if you shutdown RabbitMQ server, when process inside while - perl process will end right after publish.
try or eval will not help.
That's happened because of write call on closed handle
And because we unable to handle SIGPIPE - our program is closed.