Skip to main content

All Questions

Tagged with
3 votes
1 answer
1k views

How to communicate a Rust and a Ruby process using a Unix socket pair

I am trying to communicate a Rust process with a child Ruby process using a Unix socket pair. I have tried the same using only Ruby and it works, but I can't seem to get it to work with Rust. I have ...
Vinícius Stock's user avatar
0 votes
1 answer
345 views

Can unix socket be used for thrift ruby client?

I'm trying to use thrift, and use ruby as client side. I'm trying to find documentation for how to initialize a ruby client using the unix domain socket. Is it possible to use thrift on ruby client ...
Yuki Inoue's user avatar
  • 3,787
0 votes
0 answers
36 views

Bind external command output to a socket?

I'm looking for a working example how connect standard output of spawned external command to a unix socket. So far, I put up following snippet. require 'socket' class XkbSocket def initialize @...
torimus's user avatar
  • 29
1 vote
1 answer
319 views

Python unix socket server recieves same data from client multiple times

I am trying to communicate between ruby and python through unix sockets, and i need multithreaded python server to respond to many ruby clients. All work fine except 1 thing, that i send message from ...
jealrockone's user avatar
0 votes
1 answer
506 views

How to new a unix domain socket file with mode(777) in ruby

I create an unix domain socket file using this code: UNIXServer.new('tmp/my_socket.sock') It did create socket file but the default file mode is srwxrwxr-x, How can I specific the mode when creating, ...
timlentse's user avatar
  • 195
3 votes
1 answer
843 views

Using Faraday to make HTTP requests over a Unix socket

I tried putting together a custom Faraday adapter to make HTTP requests using a Unix socket using NetX::HTTPUnix. The code looks like this: module Faraday class Adapter class NetHttpUnix < ...
Aaron's user avatar
  • 889
2 votes
1 answer
374 views

Error reading an element twice in the same unix socket connection

I am facing a rather strange problem. I have created a unix socket server between ruby and C where, on the C side, a main thread creates and listens to the socket and, upon accept or a connection, ...
XAnguera's user avatar
  • 1,267
0 votes
1 answer
283 views

UNIXSocket .connect() but don't have full path to socket

This is for a networks project I'm working on. It requires us to simulate a bridge. The sockets become the ports basically. But I was told in order for a Unixsocket to work it needs the full path to ...
isignisign's user avatar
0 votes
1 answer
83 views

Ruby UNIXServer with Node.js client and chunked data

I've this Ruby server that uses a Unix Socket: require 'socket' require 'json' server = UNIXServer.new('/tmp/ciccio.sock') loop do sock = server.accept loop do begin data = sock.recv(...
Pioz's user avatar
  • 6,331
0 votes
1 answer
243 views

Ruby UNIXServer with Node.js client

I've this Ruby server that uses a Unix Socket: require 'socket' server = UNIXServer.new('/tmp/ciccio.sock') loop do sock = server.accept loop do begin data = sock.recv(1024) data ...
Pioz's user avatar
  • 6,331
1 vote
1 answer
1k views

Design approach for hosting multiple microservices on the same host [closed]

I'm working on a Web application that I decoupled it in multiple containerized microservices. I have now around 20 services, but the whole system will definitely need more than 300. Most of the ...
marcelocbf's user avatar
1 vote
0 answers
141 views

How to set Socket Timeouts in ruby's UNIXSocket?

I want to set the SO_SNDTIMEO on a Ruby Socket. The unix socket class does not seem to allow that? How does one do this.
sheki's user avatar
  • 9,370
2 votes
1 answer
642 views

My try to write unix domain socket communication script between Ruby and C

I am trying to make a bridge via unix domain socket between Ruby script as server and C app as client but currently I am stuck in the read loop until I kill Ruby script maybe someone could look at the ...
Aurimas Niekis's user avatar
5 votes
6 answers
833 views

Communication between Rails and Ruby EventMachine Process

I have a rails app which needs to request data from a local running process running EventMachine. What is the best way of implementing this request/response?
Mike Neumegen's user avatar
2 votes
0 answers
1k views

Speeding up IPC with Ruby

I am trying to do IPC between 2 processes on the same Linux box in Ruby, and I need to optimize the solution as far as practicable. I had begun with a TCPSocket but I see that using UNIXSocket is ...
Fanatic23's user avatar
  • 3,428

15 30 50 per page