<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span>Thanks Stephen, we will give the patches a try here and report back how it looks.</span></div><div><br><span></span></div><div><span>Regards,</span></div><div><span>Shantanu</span></div><div><span><br></span></div><div><br></div>  <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Stephen Gallagher &lt;sgallagh@redhat.com&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Development of the System Security Services Daemon &lt;sssd-devel@lists.fedorahosted.org&gt; <br><b><span style="font-weight: bold;">Cc:</span></b> Shantanu Goel &lt;sgoel01@yahoo.com&gt; <br> <b><span
 style="font-weight: bold;">Sent:</span></b> Monday, June 18, 2012 11:33 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [SSSD] [PATCH] Add support for terminating idle connections in sssd_nss<br> </font> </div> <br>
On Mon, 2012-06-18 at 09:33 -0400, Stephen Gallagher wrote:<br>&gt; On Mon, 2012-06-18 at 06:30 -0700, Shantanu Goel wrote:<br>&gt; &gt; Hi Stephen,<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; Please feel free to modify the patch in any way or shape you deem<br>&gt; &gt; necessary for inclusion.&nbsp; We are just glad that you agree there is a<br>&gt; &gt; real problem which needs fixing.&nbsp; One thing I ask is if you expect to<br>&gt; &gt; have rhel 5 or 6 test RPMs that we could test with the ultimate fix<br>&gt; &gt; any time soon, please drop me a note and we will gladly install them<br>&gt; &gt; on some of our problematic machines here to see if they address the<br>&gt; &gt; problems we have seen.<br>&gt; <br>&gt; Sure, once this is done I'm going to be committing it upstream for the<br>&gt; master branch (future 1.9), the sssd-1-8 branch (our current LTM<br>&gt; release) and the sssd-1-5 branch (our previous LTM release).<br>&gt; <br>&gt; You should
 be able to pull the patches from the sssd-1-5 branch and<br>&gt; build them for your systems once they're ready.<br><br>Ok, new patches attached. Shantanu, these are currently designed for the<br>master branch. We'll get them committed there first and tested out for a<br>little while, then we'll backport them.<br><br>Patch 0001: Return the correct errno value. Previously it could have<br>been reset by closing the socket.<br><br>Patch 0002: Add some additional debugging to the client_destructor()<br><br>Patch 0003: On systems that support MSG_NOSIGNAL, we should use it. This<br>way, if a client app isn't configured to listen for SIGPIPE, it will not<br>crash.<br><br>Patch 0004: Add a timer to each client context. If sixty seconds pass<br>(configurable in the patch 0005) without either read or write activity,<br>we will free the client context and close the socket. The client code is<br>already written to be tolerant of this and will reconnect on the
 next<br>request. This will help us avoid resource exhaustion if we have clients<br>that hang on to NSS and PAM file descriptors indefinitely (like 'su' and<br>'login' do for PAM).<br><br>Patch 0005: Make the client idle timeout value configurable and add it<br>to the manpages and config API.<br><br><br> </div> </div>  </div></body></html>