[OpenSIPS-Devel] [opensips] profile_get_size freezes (#257)

Bogdan Andrei IANCU notifications at github.com
Fri Jul 25 13:28:40 CEST 2014


opensipsctl is creating dynamic and temporary reply fifo files - one for each request, deleting it at the end.
If opensipsctl is interrupted, the reply fifo files will not be deleted and they will accumulated in time. It is strange how a file may survive (unused) in /tmp since 2013 :O . 

The blocking you noticed in opensipsctl is because opensips is not able to send back the reply (via the reply fifo) - see the error on writing into it.

Anyhow,checking the code in opensipsctl, I found some weak code - opensipsctl may reuse existing reply fifo files (if existing) disregarding their permissions. So it may end up reusing a reply fifo (a left over) with wrong permissions.

I made on trunk an improvement on how the names of the reply fifo files are generated. This will eliminated the overlapping and reusage. Please give it try, it's commit  7078c0f .

Thanks and regards,
Bogdan

---
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/issues/257#issuecomment-50137419
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20140725/d3ceb2b6/attachment.htm>


More information about the Devel mailing list