From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "A. Mahendra Rajah" Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: inetd: accept: Operation would block Date: Tue, 01 Apr 2003 10:30:38 -0600 (CST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <01KU7KSWPDJK8WVYKJ@Eason.cc.uregina.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; CHARSET=US-ASCII Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1049215472 10009 80.91.224.249 (1 Apr 2003 16:44:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2003 16:44:32 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Apr 01 18:44:29 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 190Oq2-0002R2-00 for ; Tue, 01 Apr 2003 18:42:18 +0200 Original-Received: (qmail 31812 invoked by uid 5); 1 Apr 2003 16:42:24 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 31803 invoked by uid 49493); 1 Apr 2003 16:42:24 -0000 Original-Received: from Mahendra.Rajah@URegina.CA by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-0.7/5.0):. Processed in 0.427556 secs); 01 Apr 2003 16:42:24 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 1 Apr 2003 16:42:24 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HCO002UMBQE4W@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 01 Apr 2003 11:42:21 -0500 (EST) Original-Received: from Eason.CC.URegina.CA (EASON.CC.UREGINA.CA [142.3.100.3]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HCO0015XBJILD@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 01 Apr 2003 11:38:06 -0500 (EST) Original-Received: from Eason.cc.uregina.ca by Eason.cc.uregina.ca (PMDF V5.2-31 #42552) id <01KU7HBDF11C8WVYKJ@Eason.cc.uregina.ca> for tru64-unix-managers@ornl.gov; Tue, 01 Apr 2003 10:38:11 -0600 (CST) Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:3855 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3855 I asked the following question a few days ago: --------------------------------------------------------- We could not telnet, ftp, ssh or LAT into our Alphaserver DS20 (Tru64 v5.1A + Pkit3) all day today. Xwindows connections worked. In the /var/adm/syslog.dated/daemon.log file and at the console, the following message got displayed frequently: inetd[859]: accept: Operation would block What would cause this error to show up and why couldn't we make telnet, ssh or LAT connections to this host? --------------------------------------------------------- I received only one reply, from the ever reliable Dr. Tom Blinn. Tom said: If you read the accept(2) reference page, you will find this (or similar) text: [EWOULDBLOCK] The socket is marked nonblocking, and no connections are present to be accepted. The standard string name for "EWOULDBLOCK" is "Operation would block"; if the current errno is the EWOULDBLOCK value and you use "perror()" to print an error string, you get that string. This is probably (but not necessarily) due to some resource inside the kernel being exhausted. After all, accept() becomes a syscall pretty quickly, and it's the kernel that returns the EWOULDBLOCK error code to the libc code, which returns it to the application. Either it's a bug in the kernel, or it's a predictable condition based on something that was happening in your network or your system at the time. Either way, that's about as much as I can tell you.. I can't tell you (without a close examination of the kernel code that get's invoked for an accept() which is NOT in my personal area of expertise) what condition causes the error to be returned; I could probably find someone who could point me to the right place in the IP stack to look, but it's not something I know particularly well.. Thank you Tom. HP support pitched in and confirmed that this error was the remanant of some failed port scan attempt. Rebooting the machine cleared it. -- mahendra ................................................................. A. Mahendra Rajah Email: Mahendra.Rajah@URegina.CA Tru64 UNIX Systems Manager Phone: (306) 585-4496 Dept. of Computing Services FAX: (306) 337-2324 University of Regina, Regina, Sask., S4S 0A2 Canada. .................................................................