luasocket icon indicating copy to clipboard operation
luasocket copied to clipboard

Accept IPC pipe, from client socket

Open uasan opened this issue 8 years ago • 2 comments

Hi.

I try send IPC pipe from foreign process, to lua process by unix socket.

Foreign process used method uv_write2(lua_pipe, buff, ips_pipe) from libuv http://docs.libuv.org/en/v1.x/stream.html#c.uv_write2

In lua script error: calling 'accept' on bad self (unix{server} expected, got unix{master})

How to accept IPC pipe, from client socket?

Thank.

uasan avatar Jun 08 '17 16:06 uasan

I don't know anything about libuv. You can probably try to hack something together using setfd(), but maybe you should just write some C to support this kind of exchange.

diegonehab avatar Jun 11 '17 16:06 diegonehab

Anything further needed here?

We're reviewing open items in preparation for a release. If action is needed here, please add a comment. Otherwise, this issue will be closed on or after 24-Feb-2019.

Thanks!

ewestbrook avatar Feb 18 '19 09:02 ewestbrook