From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 24 May 2004 10:13:41 +0100 (BST) Received: from dvmwest.gt.owl.de ([IPv6:::ffff:62.52.24.140]:58283 "EHLO dvmwest.gt.owl.de") by linux-mips.org with ESMTP id ; Mon, 24 May 2004 10:13:38 +0100 Received: by dvmwest.gt.owl.de (Postfix, from userid 1001) id D03204B6FF; Mon, 24 May 2004 11:13:35 +0200 (CEST) Date: Mon, 24 May 2004 11:13:35 +0200 From: Jan-Benedict Glaw To: linux-mips@linux-mips.org Subject: Re: Socket problem? Message-ID: <20040524091335.GD1912@lug-owl.de> Mail-Followup-To: linux-mips@linux-mips.org References: <20040522160635.GV1912@lug-owl.de> <000501c44168$b4718800$2000a8c0@gillpc> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ieuopS9JtHMyIYxU" Content-Disposition: inline In-Reply-To: <000501c44168$b4718800$2000a8c0@gillpc> X-Operating-System: Linux mail 2.4.18 X-gpg-fingerprint: 250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 8399 E1BB X-gpg-key: wwwkeys.de.pgp.net User-Agent: Mutt/1.5.5.1+cvs20040105i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 5121 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: jbglaw@lug-owl.de Precedence: bulk X-list: linux-mips --ieuopS9JtHMyIYxU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 2004-05-24 09:25:43 +0100, Gill wrote in message <000501c44168$b4718800$2000a8c0@gillpc>: > Hi - >=20 > To clarify, more specifically select() returns a positive value, and a > subsequent call to FD_ISSET() returns TRUE for one of the sockets the app= is > listening on. Then, app calls recvfrom() which returns (sometimes) -1. > Problem occurs sporadically...I'm seeing it every hundred or so packets at > the moment, but it varies. That sounds perfectly okay. >>From SuS V3: ------------------------------------------------------------------- A descriptor shall be considered ready for reading when a call to an input function with O_NONBLOCK clear would not block, whether or not the function would transfer data successfully. (The function might return data, an end-of-file indication, or an error other than one indicating that it is blocked, and in each of these cases the descriptor shall be considered ready for reading.) ------------------------------------------------------------------- So everything is perfectly okay, and because you have to do proper error checking anyways, that shouldn't disturb your application at all. MfG, JBG --=20 Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier B=FCrger" | im Internet! | im Ira= k! ret =3D do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TC= PA)); --ieuopS9JtHMyIYxU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAsby/Hb1edYOZ4bsRAkJ2AJ440la+6H1v814nFOv9iMTGK+y+QACfeKj7 Qlgrmv4WxI9UiVQE5V+DZhU= =8ZvA -----END PGP SIGNATURE----- --ieuopS9JtHMyIYxU-- From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 24 May 2004 11:13:35 +0200 From: Jan-Benedict Glaw Subject: Re: Socket problem? Message-ID: <20040524091335.GD1912@lug-owl.de> References: <20040522160635.GV1912@lug-owl.de> <000501c44168$b4718800$2000a8c0@gillpc> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ieuopS9JtHMyIYxU" Content-Disposition: inline In-Reply-To: <000501c44168$b4718800$2000a8c0@gillpc> Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org To: linux-mips@linux-mips.org Message-ID: <20040524091335.Ox8ZvN2XEXzkLJ4uXlLLTnsCuK_GRMCHzKCYQXkeuSY@z> --ieuopS9JtHMyIYxU Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, 2004-05-24 09:25:43 +0100, Gill wrote in message <000501c44168$b4718800$2000a8c0@gillpc>: > Hi - >=20 > To clarify, more specifically select() returns a positive value, and a > subsequent call to FD_ISSET() returns TRUE for one of the sockets the app= is > listening on. Then, app calls recvfrom() which returns (sometimes) -1. > Problem occurs sporadically...I'm seeing it every hundred or so packets at > the moment, but it varies. That sounds perfectly okay. >From SuS V3: ------------------------------------------------------------------- A descriptor shall be considered ready for reading when a call to an input function with O_NONBLOCK clear would not block, whether or not the function would transfer data successfully. (The function might return data, an end-of-file indication, or an error other than one indicating that it is blocked, and in each of these cases the descriptor shall be considered ready for reading.) ------------------------------------------------------------------- So everything is perfectly okay, and because you have to do proper error checking anyways, that shouldn't disturb your application at all. MfG, JBG --=20 Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg fuer einen Freien Staat voll Freier B=FCrger" | im Internet! | im Ira= k! ret =3D do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TC= PA)); --ieuopS9JtHMyIYxU Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFAsby/Hb1edYOZ4bsRAkJ2AJ440la+6H1v814nFOv9iMTGK+y+QACfeKj7 Qlgrmv4WxI9UiVQE5V+DZhU= =8ZvA -----END PGP SIGNATURE----- --ieuopS9JtHMyIYxU--