logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

perlfunc(1): incomplete select() description: msg#00013

Subject: perlfunc(1): incomplete select() description
Hello,

I have noticed that the description of select perl function in perlfunc manual 
(the one that calls the select(2) syscall) doesn't mention anything about the 
possibility of having -1 as a return value when an error occurs.

I think this might have been the reason why some popular perl modules (it's 
the case of, at least IO::Select and Net::SNMP(*)) don't handle this case in 
their code.
In the case of IO::Select, I have had to clear $! before calling its select 
method to figure out if there has been an error.
In the case of Net::SNMP, when select returns, it goes unconditionally to a 
blocking recv (this isn't always correct since select could have finished 
because a signal has arrived, not because data is available for reading).

Another issue with select that I consider should be mentioned in perlfunc 
manual, is that in some systems (i.e., Linux) it could return a socket file 
descriptor as ready for reading, when actually no data is available, which 
can be solved using always nonblocking sockets (the manual page for select(2) 
shipped in debian woody is an example). Net::SNMP has this problem (i.e.: 
does not use nonblocking sockets).

(*) I have contacted the author of this module, and the issue was corrected in 
release 5.0.0.

Regards,
Hernan A. Perez Masci.



Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe