Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

196
Views
What happens with messages that are being sent over a Unix socket while the receiving end is not reading from the socket?

I am currently learning about IPC and Unix domain sockets. I was wondering what happens with messages that are being sent over a Unix socket while the receiving end is not reading from the socket? Do they get sent regardless whether someone is reading or do they stay in some sort of queue waiting for a reader

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Based on my research (Linux), in the case of datagram (message-oriented) Unix socket:

  • if the receiving end has not done bind() on the socket, the sender will fail to perform sendto();
  • if the receiving end has done bind() on the socket and does not keep on doing recvfrom(), the sender will enqueue a batch of messages up to some limit and stall;
  • if the receiving end resumes doing recvfrom(), the sender will resume.

See also: sysctl net.unix.max_dgram_qlen (for queue size).

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!