No smb_raw_search_next in smb_cliraw.h

Stef Bon stefbon at
Sun Jul 13 03:12:11 MDT 2014

As a described earlier, the tevent library is async because it use
more than one eventloop on one filedescriptor.
Different threads can use a construction like:

while ( ! request is done) {



The function foo_done is called as callback, and set's the request as done.

This way it's possible to let the requesting thread to wait for data
coming from the server, without blocking the connection. It's also
possible to programm very easy timeouts. ;)

Now with io like fs event change request, it's not possible to make
the requesting thread wait. It should wait forever, causing a blocking

What works is that there is a special thread which watches the
filedescriptor for replies to the fs change notify request.

You agree with me?

The same counts for when the connection  is reset by the remote site.
This event is not detected until the client sends a request, and
connection problems are detected. These events should be detected by a
special thread.


More information about the samba-technical mailing list