[lkml]   [2001]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: FWD: 3 NIC cards problem
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?)


------Original Message------
From: William T Wilson <>
To: Lee Chin <>
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, port 80.
> What I want to do is have incomming connection requets for IP
> and on port 80 also be handled by my server running on
> 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
Sign up at
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:18    [W:0.053 / U:6.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site