From 4218cde549dea41408753dfc23f5f06ac72147ab Mon Sep 17 00:00:00 2001 From: dom96 Date: Thu, 22 Mar 2012 20:48:16 +0000 Subject: [PATCH] Forgot to rename ETimedout to ETimeout in the sockets module in some places. --- lib/pure/sockets.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/pure/sockets.nim b/lib/pure/sockets.nim index fb7d337ee7..31973c6ce7 100755 --- a/lib/pure/sockets.nim +++ b/lib/pure/sockets.nim @@ -559,11 +559,11 @@ proc recv*(socket: TSocket, data: pointer, size: int): int = template waitFor(): stmt = if timeout - int(waited * 1000.0) < 1: - raise newException(ETimedout, "Call to recv() timed out.") + raise newException(ETimeout, "Call to recv() timed out.") var s = @[socket] var startTime = epochTime() if select(s, timeout - int(waited * 1000.0)) != 1: - raise newException(ETimedout, "Call to recv() timed out.") + raise newException(ETimeout, "Call to recv() timed out.") waited += (epochTime() - startTime) proc recv*(socket: TSocket, data: var string, size: int, timeout: int): int = @@ -683,7 +683,7 @@ proc recvTimeout*(socket: TSocket, timeout: int): TaintedString = ## socket. var s = @[socket] if s.select(timeout) != 1: - raise newException(ETimedout, "Call to recv() timed out.") + raise newException(ETimeout, "Call to recv() timed out.") return socket.recv @@ -798,7 +798,7 @@ proc connect*(socket: TSocket, timeout: int, name: string, port = TPort(0), socket.connectAsync(name, port, af) var s: seq[TSocket] = @[socket] if selectWrite(s, timeout) != 1: - raise newException(ETimedout, "Call to connect() timed out.") + raise newException(ETimeout, "Call to connect() timed out.") when defined(Windows): var wsa: TWSADATA