we are running a freeswitch based application that uses intensively the Lua XML-RPC library. Everything runs perfectly fine until we reach 12-15 calls/sec, which can be safely assumed to mean to 12-15 http requests/seq. At that point some of the invocations of xmlrpc.http "call" method fails with either with "Resource Temporarily unavailable" or "Bad file descriptor". If we push it a bit harder, freeswitch dies:
Core was generated by `./freeswitch -nc -ncwait -nonat'.
Program terminated with signal 11, Segmentation fault.
#0 0x00002aaab291dd70 in socket_recv () from /usr/local/lib/lua/5.1/socket/core.so