]> git.koha-community.org Git - koha.git/commit
Bug 6620 Ensure autoflush is set on output filehandles
authorColin Campbell <colin.campbell@ptfs-europe.com>
Thu, 21 Jul 2011 11:16:22 +0000 (12:16 +0100)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Wed, 14 Sep 2011 18:04:04 +0000 (14:04 -0400)
commit275e5d872784cc35da3e4aa3be03f19bb6861b31
treeb8a781fbd78efd0dea871147a567b3b38c5ad523
parent09ae2aa7e9158129cc4d9648810858bf25c685f2
Bug 6620 Ensure autoflush is set on output filehandles

stdout is by default buffered and a flush is only guaranteed on CR
Sip responses are not CR terminated so we need to ensure autoflush
is switched on  so that the filehandle is flushed after a print
Otherwise this can manifest as self checks running slow or
failing due to timeout (although in the log we see the response)

Signed-off-by: Ulrich Kleiber <ulrich.kleiber@bsz-bw.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit f9ccfae400324fdd88597ff81fba42715e50f19d)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/SIP/Sip.pm