void-packages

Void Source Packages
git clone git://ezup.dev/void-packages.git
Log | Files | Refs | README | LICENSE

change-timeout.diff (575B)


      1Changed timeout from 5 seconds to 500ms
      2https://patch-diff.githubusercontent.com/raw/solusipse/fiche/pull/80.diff
      3
      4diff --git a/fiche.c b/fiche.c
      5index c0bbe8d..5ff0b06 100644
      6--- a/fiche.c
      7+++ b/fiche.c
      8@@ -495,7 +495,7 @@ static void dispatch_connection(int socket, Fiche_Settings *settings) {
      9     }
     10 
     11     // Set timeout for accepted socket
     12-    const struct timeval timeout = { 5, 0 };
     13+    const struct timeval timeout = { 0, 500 };
     14 
     15     if ( setsockopt(s, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout)) != 0 ) {
     16         print_error("Couldn't set a timeout!");