public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Lee Chin <leechin@mail.com>
To: William T Wilson <fluffy@snurgle.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: FWD: 3 NIC cards problem
Date: Wed, 28 Mar 2001 18:55:39 -0500 (EST)	[thread overview]
Message-ID: <382729285.985823739747.JavaMail.root@web584-mc> (raw)

Hi,
Thanks!!! That worked.  Now I have one more problem... I am using non
blcking sockets (set via fcntl).

And I am using select (with a 20 second timeout) to see when data is
available on the socket.  I have 600 clients hitting my web server.

Quite frequently, what happens is that some of the sockets that I am waiting
on in the select (read or write) just dont have any activity in them for
more than 20 seconds or so.... its like the client never sent any data over
or is still waiting to connect.

What could I be doing wrong (what are the common mistakes?)

Thanks
Lee

------Original Message------
From: William T Wilson <fluffy@snurgle.org>
To: Lee Chin <leechin@mail.com>
Sent: March 28, 2001 9:58:35 PM GMT
Subject: Re: FWD: 3 NIC cards problem


On Wed, 28 Mar 2001, Lee Chin wrote:

> I have a program listening for socket connections on 192.168.1.1, port 80.
>
> What I want to do is have incomming connection requets for IP 192.168.2.1
> and 192.168.3.1 on port 80 also be handled by my server running on
> 192.168.1.1:80
>
> How do I do this in Linux?

If you use INADDR_ANY in your sockaddr struct that you pass to bind,
instead of your IP address, it should listen on all network interfaces.


______________________________________________
FREE Personalized Email at Mail.com
Sign up at http://www.mail.com/?sr=signup

                 reply	other threads:[~2001-03-28 23:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=382729285.985823739747.JavaMail.root@web584-mc \
    --to=leechin@mail.com \
    --cc=fluffy@snurgle.org \
    --cc=linux-kernel@vger.kernel.org \
    /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