Re: poll() returns POLLIN but no data ?

From: Maxim Yegorushkin (firstname.lastname_at_gmail.com)
Date: 06/25/05

  • Next message: James Antill: "Re: poll() returns POLLIN but no data ?"
    Date: Sat, 25 Jun 2005 21:17:51 +0400
    
    

    On Sat, 25 Jun 2005 17:24:37 +0400, Leon Mergen <lmergen@gmail.com> wrote:

    > ufds.fd = sockStream->getHandle ();

    []

    > recv (sockStream->getHandle, buffer, sizeof(buffer), 0);

    []

    > For some reason, ufds.revents matches POLLIN, but when executing the
    > blocking recv function, there is no data and that function blocks. I'm
    > running Linux 2.6.10, and have /no/ idea what might be causing this.
    > Anyone else has an idea ?

    Probably because your code is wrong. It looks like you are passing
    something other than a socket descriptor in recv() function.

    -- 
    Maxim Yegorushkin
    <firstname.lastname@gmail.com>
    

  • Next message: James Antill: "Re: poll() returns POLLIN but no data ?"