Skip to content
#

Nim

nim logo

Nim is a general-purpose systems programming language that's designed to be efficient, expressive, and elegant. The Nim compiler produces dependency-free binaries for most platforms as well as JavaScript for the web.

Here are 1,325 public repositories matching this topic...

Nim
TRcorp
TRcorp commented Jun 25, 2020
### Example
let unreachableProxy = "http://127.0.0.1:8888"
try:
  let client = newHttpClient(proxy=newProxy(unreachableProxy), timeout=1)
  var res = client.getContent("https://github.com")
  echo res
except:
  echo "Timed out"

Current Output

timeout variable is ignored, program stuck until default socket timeout will happen

Expected Output

Timed out a

Created by Andreas Rumpf

Released 2008

Repository
nim-lang/Nim
Website
nim-lang.org
Wikipedia
Wikipedia

Related Topics

c c-plus-plus javascript language python
You can’t perform that action at this time.