mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
ITS#8118 dosearch: flush stdout
The LDIF output wasn't being explicitly flushed. In certain scenarios, such as piping the output of a persistent ldapsearch to node.js v0.12 on Mac OS X 10.10.3, the output is unavailable to the process consuming the search results until the stdio buffer fills (8192 bytes for example). This can leave the tail end of persistent search results in the buffer for a long time (until enough output has accumulated). Explicitly call flush so that the output is immediately available.
This commit is contained in:
parent
fb1bf1caa8
commit
590378edca
@ -1547,6 +1547,7 @@ static int dosearch(
|
||||
}
|
||||
|
||||
ldap_msgfree( res );
|
||||
fflush( stdout );
|
||||
}
|
||||
|
||||
done:
|
||||
|
Loading…
Reference in New Issue
Block a user