Browse Source

increase timeout for gpgit (0.5s -> 16s)

Fabian Peter Hammerle 4 years ago
parent
commit
3972aeeb7b
1 changed files with 4 additions and 2 deletions
  1. 4 2
      serve-gpgit.sh

+ 4 - 2
serve-gpgit.sh

@@ -8,5 +8,7 @@ for fingerprint in $(gpg --list-keys --with-colons | grep '^fpr:' | cut -d ':' -
     echo -e '5\ny\n' | gpg --command-fd 0 --batch --edit-key $fingerprint trust
 done
 
-# log level: notice
-exec socat -v -d -d -T4 tcp-l:6156,fork exec:/invoke-gpgit.sh
+# -d -d: log level notice
+# -T: inactivity timeout (before input at EOF?, default: none)
+# -t: reply timeout (after input at EOF, default: 0.5s)
+exec socat -v -d -d -T4 -t16 tcp-l:6156,fork exec:/invoke-gpgit.sh