title: How to fix curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated
body: <p>Same question as</p>
  <ul>
  <li><a href="https://stackoverflow.com/questions/50813406/">git error:RPC failed,curl 56 GnuTLS recv error (-110)</a>, and</li>
  <li><a href="https://stackoverflow.com/questions/60019906">&quot;error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated&quot;</a>, in which Hovo Asatryan has commented <em>&quot;it doesn’t solve the problem, I have tried it&quot;</em>, and I've tried it too, and neither it worked for me.</li>
  </ul>
  <p>So the problem with git is:</p>
  <pre><code>git clone -- https://go.googlesource.com/tools
  remote: Sending approximately 28.83 MiB ...
  remote: Counting objects: 54, done
  error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  remote: Total 51879 (delta 33023), reused 51879 (delta 33023)
  Receiving objects: 100% (51879/51879), 28.83 MiB | 4.53 MiB/s, done.
  Resolving deltas: 100% (33023/33023), done.
  </code></pre>
  <p>I.e., it doesn't seem to be a big deal as <code>git clone</code> is able to recover from it. However, the problem for me is with <code>go get</code>:</p>
  <pre><code>$ go get -v -u golang.org/x/tools/cmd/goimports
  get &quot;golang.org/x/tools/cmd/goimports&quot;: found meta tag get.metaImport{Prefix:&quot;golang.org/x/tools&quot;, VCS:&quot;git&quot;, RepoRoot:&quot;https://go.googlesource.com/tools&quot;} at //golang.org/x/tools/cmd/goimports?go-get=1
  get &quot;golang.org/x/tools/cmd/goimports&quot;: verifying non-authoritative meta tag
  golang.org/x/tools (download)
  # cd .; git clone -- https://go.googlesource.com/tools /home/me/l/ws/Go/src/golang.org/x/tools
  Cloning into '.../Go/src/golang.org/x/tools'...
  error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  package golang.org/x/tools/cmd/goimports: exit status 128
  </code></pre>
  <p>I.e., even <code>git clone</code> has already successfully clone the repo, <code>go get</code> still fails.</p>
  <p>Thus, I need to totally fix the issue.</p>