LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-22-2010, 04:57 PM   #1
svm
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Rep: Reputation: 0
Unix domain sockets - Resource temporarily unavailable


Hello,

I am new to the forum, please correct me if I am posting in the wrong forum..

While using UNIX domain sockets for IPC between two processes, the "Resource temporarily unavailable" error is thrown constantly. What are the possible options to fix the issue?

I have increased the receive buffer size at /proc/sys/net/unix/max_dgram_qlen . What other socket buffer sizes, relevant to unix domain sockets can result in this error??

Any inputs on the common problems that result in this error will be very helpful.

Thank you,
Vidya
 
Old 11-22-2010, 05:12 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
It sounds like you're using non-blocking I/O

Check out these resources:
Quote:
http://developerweb.net/viewtopic.php?id=5792

"Resource temporarily unavailable" is EAGAIN, aka EWOULDBLOCK... You will get it only on file descriptors that you have explicitly set to non-blocking I/O mode... And, it indicates that your I/O operation would normally have blocked at that point, because it couldn't occur immediately... (Ie: for reading, there's currently no data to read; for writing, the buffer is full and needs to be emptied first...)

Beej's Guide to Network Programming


Problems with FIFO pipe using a child and parent process

'Hope that helps!
 
Old 11-22-2010, 07:33 PM   #3
svm
LQ Newbie
 
Registered: Nov 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Paul,

Thank you very much for the links. Yes, that is exactly what I am trying to do - non-blocking I/O. As my processes are interrupted by signals, frequently, I have to receive, send in non-blocking mode. (The other option is to use select but even select is interrupted by signals!) So, I get the error during send/write, because the buffer(send/receive) is full. Other than, reducing the frequency of my IPC messages, I wanted to know what are the socket buffer sizes I could increase, that can possibly resolve the issue?

Thank you,
Vidya
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
fork: resource temporarily unavailable ??? str8edge Linux - General 3 06-21-2011 09:00 AM
C - Resource temporarily unavailable golmschenk Programming 1 03-07-2010 03:28 PM
Resource temporarily unavailable hostmaster Linux - Enterprise 2 02-14-2010 04:41 AM
Resource temporarily unavailable manoj.linux Linux - Enterprise 3 11-06-2009 08:21 AM
xcdroast - resource temporarily unavailable mwildam Linux - Newbie 4 09-24-2006 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration