Re: poll() returns POLLIN but no data ?
From: Maxim Yegorushkin (firstname.lastname_at_gmail.com)
Date: 06/25/05
- Previous message: Maxim Yegorushkin: "Re: Catch SIGSEGV and longjmp(3) to Safety?"
- In reply to: Leon Mergen: "poll() returns POLLIN but no data ?"
- Next in thread: James Antill: "Re: poll() returns POLLIN but no data ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Previous message: Maxim Yegorushkin: "Re: Catch SIGSEGV and longjmp(3) to Safety?"
- In reply to: Leon Mergen: "poll() returns POLLIN but no data ?"
- Next in thread: James Antill: "Re: poll() returns POLLIN but no data ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]