home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / lang / perl / 5664 < prev    next >
Encoding:
Internet Message Format  |  1992-09-01  |  858 b 

  1. Path: sparky!uunet!usc!news!netlabs!lwall
  2. From: lwall@netlabs.com (Larry Wall)
  3. Newsgroups: comp.lang.perl
  4. Subject: Re: select misses pending data on socket
  5. Message-ID: <1992Sep1.213109.26481@netlabs.com>
  6. Date: 1 Sep 92 21:31:09 GMT
  7. References: <1992Aug31.201931.14111@uvaarpa.Virginia.EDU>
  8. Sender: news@netlabs.com
  9. Organization: NetLabs, Inc.
  10. Lines: 13
  11. Nntp-Posting-Host: scalpel.netlabs.com
  12.  
  13. In article <1992Aug31.201931.14111@uvaarpa.Virginia.EDU> dov@menora.weizmann.ac.il writes:
  14. : The print line of $rout shows that select reports that there is no data
  15. : to be read on the socket. How can that be?
  16.  
  17. Because there isn't any data to be read on the socket.  It's already been
  18. read into the stdio buffers.
  19.  
  20. Don't use select with <>.  Use sysread() or recv() instead.
  21.  
  22. I suppose I really ought to make select work with stdio, but that can
  23. get gory...
  24.  
  25. Larry
  26.