Add fix for hanging fastcgi connections

Change-Id: I39a7385ae89b24186ab74de3c93c980dc33e6b5d
Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>