Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

199
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda