Volker Birk <
bum...@dingens.org> wrote:
> Jaydeep Chovatia <
chovatia...@gmail.com> wrote:
> > I am using "read" system call in my C++ project (Redhat Linux) to read
> > data from sockets. I have also set read timeout (SO_RCVTIMEO) to 5
> > seconds using "setsockopt", but when I run my application under load
> > run then sometimes this "read" system call hangs, it neither returns
> > data nor it times out.
> > Any suggestion/help would be appreciated.
>
> Just a guess: why not using recv(2) instead of read(2) ?
both calls should be affected. read() is just recv() with default