public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Carruth, Rusty" <Rusty.Carruth@smartm.com>
To: "Grant Edwards" <grant.b.edwards@gmail.com>,
		<ecos-discuss@sources.redhat.com>
Subject: RE: [ECOS]  What causes interrupted network system calls?
Date: Wed, 28 Oct 2009 17:02:00 -0000	[thread overview]
Message-ID: <9EFFCEC257D2B649BCD6495F5C704AA9090C479E@sr-fre-exch01.smartm.internal> (raw)
In-Reply-To: <hc9q4t$26t$1@ger.gmane.org>

In my experience with Solaris and Linux, you should ALWAYS check for
EINTR and retry the operation.  As I remember, you wouldn't get them
often, but you could (and of course, it was always at the worst possible
moment!).

If I remember right (which may not be the case!).

I don't suppose you have the Stevens book?  What does it say about this?

Rusty

Rusty Carruth | CSE
SSD Storage Products Division | SMART Modular Technologies
Adtron Corporation | 4415 E. Cotton Center Blvd | Phoenix, AZ 85040
Office:  602-735-0300 | Fax: 602-735-0349 | Email:
Rusty.Carruth@smartm.com | www.smartm.com


 
> -----Original Message-----
> From: ecos-discuss-owner@ecos.sourceware.org [mailto:ecos-discuss-
> owner@ecos.sourceware.org] On Behalf Of Grant Edwards
> Sent: Wednesday, October 28, 2009 9:06 AM
> To: ecos-discuss@sources.redhat.com
> Subject: [ECOS] What causes interrupted network system calls?
> 
> Somebody working on a network-intensive eCos application
> reported to me that in situations where there are frequent
> connection open/close operations, the various socket-related
> system calls (send, connect, etc.) are frequently returning
> -EINTR.
> 
> This application was recently ported from the old NetBSD
> network stack to the FreeBSD stack, and the -EINTR return
> values were never seen with the old stack.
> 
> Is the frequent -EINTR return expected behavior for the new
> stack?
> 
> Is there a way to get the stack to restart system calls, or is
> application code required to check for -EINTR and retry system
> calls?
> 
> --


--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

  reply	other threads:[~2009-10-28 17:02 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-28 16:06 Grant Edwards
2009-10-28 17:02 ` Carruth, Rusty [this message]
2009-10-28 17:15   ` [ECOS] " Grant Edwards
2009-10-28 17:53     ` Nick Garnett
2009-10-28 18:05       ` Grant Edwards
2009-10-28 18:27         ` Nick Garnett
2009-10-28 18:40           ` Grant Edwards
2009-10-29 18:34           ` Grant Edwards
2009-10-29 18:53             ` Nick Garnett
2009-10-29 19:04               ` Grant Edwards
2009-10-28 18:33         ` Grant Edwards
2009-10-28 18:41           ` Nick Garnett
2009-10-28 18:15       ` Carruth, Rusty

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9EFFCEC257D2B649BCD6495F5C704AA9090C479E@sr-fre-exch01.smartm.internal \
    --to=rusty.carruth@smartm.com \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=grant.b.edwards@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).