[OpenSIPS-Users] FIFO very fragile

Brett Nemeroff brett at nemeroff.com
Mon May 9 18:40:13 CEST 2011


Hello List,
So I've been doing some testing with the mi_fifo and found that it appears
to be really fragile. Here's what I've done:

mkfifo /tmp/my_fifo
cat /tmp/my_fifo&
echo -e ":address_dump:my_fifo\n\n" > /tmp/opensips_fifo
*returns*
200 OK
  48 <1.2.3.4,2, 0, 0, NULL, NULL>
** cat process ends
cat /tmp/my_fifo&
echo -e ":address_dump:my_fifo\n\n" > /tmp/opensips_fifo
** nothing

At this point, I can't make the fifo work again until I restart opensips. If
I detach from the fifo (kill the cat, so to speak), and reattach it doesn't
work. Nothing seems to make it responsive again. At first I though something
was horribly broken, but then I removed one of my \n from the fifo command
and now it works "as expected". Two new-lines shouldn't break the fifo,
right?

Thanks!
-Brett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20110509/901fb57b/attachment.htm>


More information about the Users mailing list