Skip to content

Commit

Permalink
comment out the linux select timeout workaround and comment why
Browse files Browse the repository at this point in the history
  • Loading branch information
sungo committed Mar 3, 2003
1 parent 6a1da00 commit fd94b4f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/POE/Loop/Select.pm
Expand Up @@ -31,10 +31,15 @@ sub POE_LOOP () { LOOP_SELECT }
# anyway (it's happened), the select() function is restarted and will
# block indefinitely. Set the minimum select() timeout to 1us on
# Linux systems.
BEGIN {
my $timeout = ($^O eq 'linux') ? 0.001 : 0;
eval "sub MINIMUM_SELECT_TIMEOUT () { $timeout }";
};

# sungo: this appears no longer necessary and speeds up events per second
# on linux. basically, the smallest timeout possible on linux is 20ms.
# With no timeout, the select loop is not limited to this incredibly large
# default timeout.
#BEGIN {
# my $timeout = ($^O eq 'linux') ? 0.001 : 0;
# eval "sub MINIMUM_SELECT_TIMEOUT () { $timeout }";
#};

# select() vectors. They're stored in an array so that the MODE_*
# offsets can refer to them. This saves some code at the expense of
Expand Down

0 comments on commit fd94b4f

Please sign in to comment.