From c9e2f9778e9267348bdfa4bf2a8d950bcf5fbd50 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Fri, 30 Aug 2013 16:55:30 +0200 Subject: 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 --- common/tio.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/tio.h') 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); -- cgit v1.2.3