public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Davy Durham <pubaddr2@davyandbeth.com>
To: Jari Sundell <sundell.software@gmail.com>
Cc: bert hubert <bert.hubert@netherlabs.nl>, linux-kernel@vger.kernel.org
Subject: Re: select() efficiency / epoll
Date: Tue, 23 Aug 2005 06:53:12 -0500	[thread overview]
Message-ID: <430B0E28.5090403@davyandbeth.com> (raw)
In-Reply-To: <b3f2685905082312301868f00e@mail.gmail.com>

Jari Sundell wrote:

>On 8/23/05, Davy Durham <pubaddr2@davyandbeth.com> wrote:
>  
>
>>However, I'm getting segfaults because some pointers in places are
>>getting set to low integer values (which didn't used to have those values).
>>    
>>
>
>Is it possible that you are overwritting the pointers with file
>descriptors, as those would have low integer values?
>
>  
>
Yes, that is what I was thinking and is why I mentioned that.  But I'm 
apparently not overwriting the pointers with FDs.. it seems that epoll 
is the cause at this point (unless I'm misusing the epoll API).  I've 
made some changes to now use select() instead of epoll and things work 
flawlessly (although it obviously won't work as efficiently when I 
really connect a lot of clients to this server)




  reply	other threads:[~2005-08-23 19:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-22 21:18 select() efficiency Davy Durham
2005-07-22 21:24 ` bert hubert
2005-08-23  9:49   ` select() efficiency / epoll Davy Durham
2005-08-23 18:24     ` bert hubert
2005-08-23 11:01       ` Davy Durham
2005-08-23 11:25         ` Davy Durham
2005-08-23 19:12         ` Willy Tarreau
2005-08-23 11:24           ` Davy Durham
2005-08-23 19:45             ` Willy Tarreau
2005-08-23 11:55               ` Davy Durham
2005-08-23 20:20                 ` Willy Tarreau
2005-08-23 23:21                   ` Davide Libenzi
2005-08-23 17:08                     ` Davy Durham
2005-08-24  5:09                       ` Davide Libenzi
2005-08-23 22:35                         ` Davy Durham
2005-08-23 19:30     ` Jari Sundell
2005-08-23 11:53       ` Davy Durham [this message]
2005-08-23 20:42         ` Jari Sundell
2005-08-23 17:11           ` Davy Durham
2005-08-23 17:40           ` Davy Durham

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=430B0E28.5090403@davyandbeth.com \
    --to=pubaddr2@davyandbeth.com \
    --cc=bert.hubert@netherlabs.nl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sundell.software@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