home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!usc!news!netlabs!lwall
- From: lwall@netlabs.com (Larry Wall)
- Newsgroups: comp.lang.perl
- Subject: Re: select misses pending data on socket
- Message-ID: <1992Sep1.213109.26481@netlabs.com>
- Date: 1 Sep 92 21:31:09 GMT
- References: <1992Aug31.201931.14111@uvaarpa.Virginia.EDU>
- Sender: news@netlabs.com
- Organization: NetLabs, Inc.
- Lines: 13
- Nntp-Posting-Host: scalpel.netlabs.com
-
- In article <1992Aug31.201931.14111@uvaarpa.Virginia.EDU> dov@menora.weizmann.ac.il writes:
- : The print line of $rout shows that select reports that there is no data
- : to be read on the socket. How can that be?
-
- Because there isn't any data to be read on the socket. It's already been
- read into the stdio buffers.
-
- Don't use select with <>. Use sysread() or recv() instead.
-
- I suppose I really ought to make select work with stdio, but that can
- get gory...
-
- Larry
-