diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-30 16:55:30 +0200 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2013-08-30 18:27:15 +0200 |
commit | c9e2f9778e9267348bdfa4bf2a8d950bcf5fbd50 (patch) | |
tree | 37e7fa0ca48f1e4db1107933f39319b3d2145881 /common/tio.h | |
parent | 7140d2197ab2132b33553bacc5f8d8240ed13bbe (diff) |
Use a timeout when skipping remaining result data
When the NSS modules closes the connection and skips any remaining
result data, wait for up to 500 msec to read any available data.
See:
https://bugzilla.redhat.com/show_bug.cgi?id=1003011
Diffstat (limited to 'common/tio.h')
-rw-r--r-- | common/tio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/tio.h b/common/tio.h index b489b2e..7723ee2 100644 --- a/common/tio.h +++ b/common/tio.h @@ -2,7 +2,7 @@ tio.h - timed io functions This file is part of the nss-pam-ldapd library. - Copyright (C) 2007, 2008, 2010, 2012 Arthur de Jong + Copyright (C) 2007, 2008, 2010, 2012, 2013 Arthur de Jong This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -59,7 +59,7 @@ int tio_read(TFILE *fp, void *buf, size_t count); int tio_skip(TFILE *fp, size_t count); /* Read all available data from the stream and empty the read buffer. */ -int tio_skipall(TFILE *fp); +int tio_skipall(TFILE *fp, int skiptimeout); /* Write the specified buffer to the stream. */ int tio_write(TFILE *fp, const void *buf, size_t count); |