Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | remove deprecated stuff from the stdlib; introduce better deprecation warnings | Araq | 2018-05-05 | 1 | -2/+0 |
| | |||||
* | make asyncnet work again | Andreas Rumpf | 2018-04-30 | 1 | -1/+1 |
| | |||||
* | Fixes #4995. (#7157) | Dominik Picheta | 2018-02-13 | 1 | -4/+8 |
| | |||||
* | Revert 3db460f5045e790b54ea382 as requested by @Araq. | Dominik Picheta | 2018-01-28 | 1 | -2/+0 |
| | |||||
* | Merge branch 'devel' into async-improvements | Dominik Picheta | 2018-01-17 | 1 | -0/+2 |
|\ | |||||
| * | Raise assertion error when attempting to use closed socket. | Dominik Picheta | 2018-01-15 | 1 | -0/+2 |
| | | |||||
* | | setBlocking(false) is called on AsyncFD in newAsyncSocket proc. | Dominik Picheta | 2017-11-24 | 1 | -0/+9 |
|/ | |||||
* | Remove expr/stmt (#5857) | Arne Döring | 2017-07-25 | 1 | -2/+2 |
| | |||||
* | Adding test for recvline | Euan Torano | 2017-07-09 | 1 | -4/+2 |
| | | | | Signed-off-by: Euan Torano <euantorano@gmail.com> | ||||
* | Wait for reads to finish before reading the result | Euan T | 2017-07-03 | 1 | -2/+2 |
| | | | As requested by @dom96, this fixes an issue seen here: https://github.com/nim-lang/redis/pull/4#issuecomment-312713921 | ||||
* | Add 'hostname' param to wrapConnectedSocket | Ruslan Mustakov | 2017-05-04 | 1 | -1/+8 |
| | |||||
* | Implement dial, support IPv6 in httpclient (#5763) | Ruslan Mustakov | 2017-05-02 | 1 | -0/+11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Implement dial, support IPv6 in httpclient Added ``dial`` procedure to networking modules: ``net``, ``asyncdispatch``, ``asyncnet``. It merges socket creation, address resolution, and connection into single step. When using ``dial``, you don't have to worry about IPv4 vs IPv6 problem. Fixed addrInfo loop in connect to behave properly. Previously it would stop on first non-immediate failure, instead of continuing and trying the remaining addresses. Fixed newAsyncNativeSocket to raise proper error if socket creation fails. Fixes: #3811 * Check domain during connect() only on non-Windows This is how it was in the previous implementation of connect(). * Call 'osLastError' before 'close' in net.dial * Record osLastError before freeAddrInfo in net.dial * Add missing docs for 'dial' proc * Optimize dial to create one FD per domain, add tests And make async IPv6 servers work on Windows. * Add IPv6 test to uri module * Fix getAddrString error handling | ||||
* | fixes #3847 (#5609) | Andreas Rumpf | 2017-03-27 | 1 | -12/+4 |
| | |||||
* | Implement SSL SNI hostname setting for asyncnet. | Dominik Picheta | 2017-02-08 | 1 | -0/+5 |
| | |||||
* | deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib ↵ | Andreas Rumpf | 2017-01-30 | 1 | -2/+2 |
| | | | | deprecations | ||||
* | Add async IO overview to asyncnet module docs. | Dominik Picheta | 2017-01-06 | 1 | -1/+39 |
| | |||||
* | Add OptReuseAddr to example and handle closing | Federico Ceratto | 2017-01-02 | 1 | -0/+2 |
| | |||||
* | Fixes #4587. | Dominik Picheta | 2016-09-25 | 1 | -2/+19 |
| | |||||
* | Fixes #3847. | Dominik Picheta | 2016-09-25 | 1 | -6/+24 |
| | |||||
* | Removed tests with `asyncio`. | cheatfate | 2016-09-07 | 1 | -3/+8 |
| | | | | | Fix ssl connection drop in asyncnet Add tasyncssl test | ||||
* | Some small fixes to changes introduced by #4683. | Dominik Picheta | 2016-09-06 | 1 | -0/+2 |
| | |||||
* | Revert function names scheme due to the @dom96 comment | Anatoly Galiulin | 2016-09-06 | 1 | -4/+4 |
| | |||||
* | Fix typo | Anatoly Galiulin | 2016-09-06 | 1 | -1/+1 |
| | |||||
* | Add async IO operations with buffers on files and sockets | Anatoly Galiulin | 2016-09-06 | 1 | -3/+64 |
| | |||||
* | Fix broken asyncnet module. | Dominik Picheta | 2016-06-03 | 1 | -1/+1 |
| | |||||
* | Fixed some warnings in httpclient, net, and openssl. | Dominik Picheta | 2016-04-04 | 1 | -4/+2 |
| | |||||
* | Improved asyncnet docs (SSL procs now shown). Deprecated handshake. | Dominik Picheta | 2016-04-04 | 1 | -9/+11 |
| | |||||
* | Rename rawsockets module to nativesockets | Adam Strzelecki | 2015-10-03 | 1 | -5/+6 |
| | | | | | | | | | | This change was done to avoid confusion with TCP/IP raw sockets. Native sockets module represents handling native system low level socket API in general and is not just limited anyhow to TCP/IP raw sockets. A stub lib/deprecated/pure/rawsockets.nim module has been added as compatibility layer for old code using rawsockets, so this change will not break existing code. | ||||
* | Fixes asyncnet.recvLine. Fixes #3346. | Dominik Picheta | 2015-09-19 | 1 | -0/+1 |
| | |||||
* | Reintroduce FutureVar[T] from commit 72b4912c84b16644657. | Dominik Picheta | 2015-09-11 | 1 | -9/+25 |
| | |||||
* | Free SSL handler to avoid memory leaks | Bruce Doan | 2015-07-31 | 1 | -1/+1 |
| | |||||
* | Fixes socket problems on Windows and normalises some names. | Dominik Picheta | 2015-06-29 | 1 | -15/+22 |
| | | | | Ref #2976. Ref #2003. See news.txt for details. | ||||
* | Make newAsyncSocket AF_INET6 the default domain. | Andrew Yourtchenko | 2015-06-23 | 1 | -1/+1 |
| | |||||
* | Make asyncnet.bindAddr IPv4+IPv6 compatible. | Andrew Yourtchenko | 2015-06-23 | 1 | -15/+12 |
| | |||||
* | Adjustments to #2610. | Dominik Picheta | 2015-06-22 | 1 | -1/+10 |
| | |||||
* | Merge branch 'starttls' of https://github.com/wiml/Nim into wiml-starttls | Dominik Picheta | 2015-06-22 | 1 | -0/+9 |
|\ | | | | | | | | | Conflicts: lib/pure/net.nim | ||||
| * | Make the post-connection wrapSocket() call available in both the synchronous ↵ | Wim Lewis | 2015-04-26 | 1 | -9/+4 |
| | | | | | | | | and asynchrinous net modules. | ||||
| * | Add a handshake parameter to wrapSocket() to allow it to work on an ↵ | Wim Lewis | 2015-04-23 | 1 | -1/+15 |
| | | | | | | | | already-connected socket. | ||||
* | | Merge branch 'exportnewsocket' of https://github.com/boopcat/Nim into ↵ | Dominik Picheta | 2015-06-05 | 1 | -3/+3 |
|\ \ | | | | | | | | | | | | | | | | | | | boopcat-exportnewsocket Conflicts: lib/pure/asyncnet.nim | ||||
| * | | Export newSocket(fd) from net.nim and standardize args in net/asyncnet | boopcat | 2015-05-30 | 1 | -3/+3 |
| | | | | | | | | | | | | | | | | | | | | | Exporting newSocket(fd) mimics what asyncnet does and lets you pass in your own socket FD. newSocket*(fd) and newAsyncSocket*(fd) now both take "buffered" instead of "isBuff" and defaults to true to match the other constructors on both. | ||||
* | | | lib/pure/a-c - Dropped 'T' from types | pdw | 2015-06-04 | 1 | -10/+10 |
|/ / | |||||
* | | Add warning about recvLineInto being bound to change | def | 2015-04-26 | 1 | -0/+3 |
| | | |||||
* | | Revert "Introduce FutureVar[T] to make recvLineInto safer." | def | 2015-04-26 | 1 | -29/+9 |
| | | | | | | | | This reverts commit 72b4912c84b16644657f94e54105739cba4b2457. | ||||
* | | Fix asyncdispatch on Windows. | Dominik Picheta | 2015-04-24 | 1 | -112/+0 |
| | | |||||
* | | Introduce FutureVar[T] to make recvLineInto safer. | Dominik Picheta | 2015-04-24 | 1 | -9/+29 |
| | | | | | | | | | | | | | | | | | | | | | | FutureVar[T] is a new distinct Future type which is designed to be used for situations where the highest performance is needed. It reduces the number of Future allocations needed. It acts as a replacement for 'var' params in async procs. This commit modifies @def-'s PR in order to make it safer. The recvLineInto procedure has been modified to take a ``FutureVar[string]`` param instead of a ``ptr string`` param. | ||||
* | | Some small cleanup. | Dominik Picheta | 2015-04-23 | 1 | -2/+2 |
| | | |||||
* | | Merge branch 'clean-speedup-2' of https://github.com/def-/Nim into ↵ | Dominik Picheta | 2015-04-23 | 1 | -42/+189 |
|\ \ | |/ |/| | | | def--clean-speedup-2 | ||||
| * | Some style cleanup | def | 2015-03-17 | 1 | -3/+3 |
| | | |||||
| * | Move recvInto to asyncnet and don't export it | def | 2015-03-17 | 1 | -8/+120 |
| | | |||||
| * | Don't export readInto* templates | def | 2015-03-17 | 1 | -2/+2 |
| | |