Signaling Ruby from C/C++

A

ara.t.howard

I tried your code again by building a standard Ruby extension too, and
it worked; no idea what SWIG is doing different.

But there is although the problem, that if I'm reading from the
descriptor, and no data is there, the complete ruby application blocks.
=(

Concerning the solution with sockets.
For single messages it works perfectly, but if there are a higher load,
I experienced, that some Messages did not arrive in Ruby. Is there no
receiving buffer in ruby? Have got anybody an idea.

probably it's on the c end - you may be continuing to send data when the pipe
is full - are you checking the exit status of the writes?

regards.



-a
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top