Socket buffer usage

Yoshihiro Ota ota at j.email.ne.jp
Mon Apr 9 03:51:19 UTC 2012


On Sun, 8 Apr 2012 01:01:01 +0200
Ivan Voras <ivoras at freebsd.org> wrote:

> On 7 April 2012 23:36, Vlad Galu <dudu at dudu.ro> wrote:
> > This might not exactly be what you want, but struct kevent has a member called "data" which,
> > for sockets and pipes, returns the number of available bytes to read (or write) for EVFILT_READ
> > (or EVFILT_WRITE) events.
> >
> 
> That's a good idea but I'm actually trying to find out why my write
> events are not firing, so I can't get to that information.

Do you happen to use 2 TCP connections in threaded client/server programs: one for reading only and the other for writing only?

If so, I observed such behavior in several years ago and can give you a hint.

Hiro



More information about the freebsd-hackers mailing list