Solved

No buffer space available: accept: (client socket)

Posted on 2001-06-20
10
1,040 Views
Last Modified: 2012-08-14
Hi
Sometimes my httpd process hangs and generate the following error in the log file

[Fri Jun  8 16:53:23 2001] [error] (233)No buffer space available: accept: (client socket)

 
0
Comment
Question by:odnanref
  • 5
  • 4
10 Comments
 
LVL 4

Expert Comment

by:jbrugman
Comment Utility
Is that a perl question?
0
 

Author Comment

by:odnanref
Comment Utility
I'm using perl scripts with a CGI.pm, and is possible that someone had the same problem.
Do you think is better to put the quewstion in the apache area?
0
 
LVL 4

Expert Comment

by:jbrugman
Comment Utility
Would honestly don't know. I'd suggest you try it there as well, Is apache running or is the server even not starting due to the error?
Can you give more info?

like, when does it happen and what modules are loaded that might vouse the problem, is mod_perl active etc.
0
 
LVL 8

Expert Comment

by:shlomoy
Comment Utility
check to see if /var is full
0
 

Author Comment

by:odnanref
Comment Utility
No it's not full

df -k /var
/var   (/dev/vg00/lvol8     ) :  1042709 total allocated Kb
                                   184810 free allocated Kb
                                   857899 used allocated Kb
                                   82 % allocation used
I'm using mod_perl
In the same machine there are other Apache processes that don't have the same problem. A diference is that I have the passwords in the database and the others are using password and .htaccess files.
I use the module Apache::MyAuthDBI for authentication.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 4

Expert Comment

by:jbrugman
Comment Utility
If your programs are in mod_perl, do you actually clear the contents of your vars and arrays and close the database connection in your script?

if not, mod_perl keeps the possible persistent db-connection open, and does not free it. Second, when vars aren't cleared, mod_perl keeps them in memory.
0
 

Author Comment

by:odnanref
Comment Utility
I close all the database connections, but I don't clear explicitly the contents of my vars and arrays.

To clear the arrays can I do
 $#ArrayFiles = -1; ?

How can I clean the vars?


0
 
LVL 4

Expert Comment

by:jbrugman
Comment Utility
hmm, i assume you know: http://perl.apache.org/guide/porting.html#Exposing_Apache_Registry_secret ?
here's explained what i mean.
When i cache some stuff, i ude undef to clean it.
0
 

Author Comment

by:odnanref
Comment Utility
I didn't forget you.
I tried to undef all vars and arrays and I'm waiting to see if the problem persists.
The process is runing without problems since 21/06/2000
Lets wait more a few days.
Thanks
0
 
LVL 4

Accepted Solution

by:
jbrugman earned 200 total points
Comment Utility
Just glad if it works.
It could be one of those nasty 'what the hack is going on' things.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

I've just discovered very important differences between Windows an Unix formats in Perl,at least 5.xx.. MOST IMPORTANT: Use Unix file format while saving Your script. otherwise it will have ^M s or smth likely weird in the EOL, Then DO NOT use m…
On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now