summary refs log tree commit diff stats
path: root/lib/pure/asyncnet.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fixes subtle SSL recvInto bug.Dominik Picheta2019-07-271-0/+1
| | | | | This resulted in a "value out of range: -1" exception inside `recvInto` (on the `copyMem` line). Basically readIntoBuf was returning `-1`.
* make more parts of the stdlib compile with --styleCheck:errorAraq2019-07-101-5/+5
|
* newruntime for async (#11650)Andreas Rumpf2019-07-051-13/+13
| | | | | | | * fixes overloading resolution for passing owned(Future[string]) to Future[T] * WIP: make --newruntime work with .async * memtracker: make it compile again * make Nimble compile again
* fixes #1286; object case transitions are now soundAndreas Rumpf2019-05-271-14/+10
|
* Fix header inconsistencies in documentation (#11071)Zed2019-04-231-4/+4
|
* asyncnet.nim: Minor code cleanupAraq2019-02-191-4/+4
|
* Provide access to getsockname()/getpeername()Federico Ceratto2019-02-171-0/+12
| | | | Port of #3323 with added tests
* Merge pull request #9915 from zevv/asyncnet-unixDominik Picheta2018-12-121-0/+55
|\ | | | | Added basic AF_UNIX support to asyncnet.
| * Added basic AF_UNIX support to asyncnet.Ico Doornekamp2018-12-091-0/+55
| | | | | | | | | | | | | | | | Unfortunately this required some code duplication because the doConnect() from asynccommon.nim only works with addrInfo which does not make sense for AF_UNIX. makeUnixAddr() was moved to nativesocket.nim and exported
* | Fixes 9716 [backport] (#9790)Yuriy Glukhov2018-11-241-1/+1
| | | | | | | | | | | | * reuse temporary variable * fixes #9716 [backport] * Declare local vars in safer place
* | stdlib: documenation updates, the exception names have been changedAndreas Rumpf2018-10-251-1/+1
|/
* WIP: disallow 'nil' for strings and seqsAndreas Rumpf2018-08-131-2/+2
|
* make async tests green for LinuxAraq2018-08-081-2/+0
|
* remove deprecated stuff from the stdlib; introduce better deprecation warningsAraq2018-05-051-2/+0
|
* make asyncnet work againAndreas Rumpf2018-04-301-1/+1
|
* Fixes #4995. (#7157)Dominik Picheta2018-02-131-4/+8
|
* Revert 3db460f5045e790b54ea382 as requested by @Araq.Dominik Picheta2018-01-281-2/+0
|
* Merge branch 'devel' into async-improvementsDominik Picheta2018-01-171-0/+2
|\
| * Raise assertion error when attempting to use closed socket.Dominik Picheta2018-01-151-0/+2
| |
* | setBlocking(false) is called on AsyncFD in newAsyncSocket proc.Dominik Picheta2017-11-241-0/+9
|/
* Remove expr/stmt (#5857)Arne Döring2017-07-251-2/+2
|
* Adding test for recvlineEuan Torano2017-07-091-4/+2
| | | | Signed-off-by: Euan Torano <euantorano@gmail.com>
* Wait for reads to finish before reading the resultEuan T2017-07-031-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 wrapConnectedSocketRuslan Mustakov2017-05-041-1/+8
|
* Implement dial, support IPv6 in httpclient (#5763)Ruslan Mustakov2017-05-021-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 Rumpf2017-03-271-12/+4
|
* Implement SSL SNI hostname setting for asyncnet.Dominik Picheta2017-02-081-0/+5
|
* deprecated nativesockets.dealloc, use freeAddrInfo instead; fixed stdlib ↵Andreas Rumpf2017-01-301-2/+2
| | | | deprecations
* Add async IO overview to asyncnet module docs.Dominik Picheta2017-01-061-1/+39
|
* Add OptReuseAddr to example and handle closingFederico Ceratto2017-01-021-0/+2
|
* Fixes #4587.Dominik Picheta2016-09-251-2/+19
|
* Fixes #3847.Dominik Picheta2016-09-251-6/+24
|
* Removed tests with `asyncio`.cheatfate2016-09-071-3/+8
| | | | | Fix ssl connection drop in asyncnet Add tasyncssl test
* Some small fixes to changes introduced by #4683.Dominik Picheta2016-09-061-0/+2
|
* Revert function names scheme due to the @dom96 commentAnatoly Galiulin2016-09-061-4/+4
|
* Fix typoAnatoly Galiulin2016-09-061-1/+1
|
* Add async IO operations with buffers on files and socketsAnatoly Galiulin2016-09-061-3/+64
|
* Fix broken asyncnet module.Dominik Picheta2016-06-031-1/+1
|
* Fixed some warnings in httpclient, net, and openssl.Dominik Picheta2016-04-041-4/+2
|
* Improved asyncnet docs (SSL procs now shown). Deprecated handshake.Dominik Picheta2016-04-041-9/+11
|
* Rename rawsockets module to nativesocketsAdam Strzelecki2015-10-031-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 Picheta2015-09-191-0/+1
|
* Reintroduce FutureVar[T] from commit 72b4912c84b16644657.Dominik Picheta2015-09-111-9/+25
|
* Free SSL handler to avoid memory leaksBruce Doan2015-07-311-1/+1
|
* Fixes socket problems on Windows and normalises some names.Dominik Picheta2015-06-291-15/+22
| | | | Ref #2976. Ref #2003. See news.txt for details.
* Make newAsyncSocket AF_INET6 the default domain.Andrew Yourtchenko2015-06-231-1/+1
|
* Make asyncnet.bindAddr IPv4+IPv6 compatible.Andrew Yourtchenko2015-06-231-15/+12
|
* Adjustments to #2610.Dominik Picheta2015-06-221-1/+10
|
* Merge branch 'starttls' of https://github.com/wiml/Nim into wiml-starttlsDominik Picheta2015-06-221-0/+9
|\ | | | | | | | | Conflicts: lib/pure/net.nim
| * Make the post-connection wrapSocket() call available in both the synchronous ↵Wim Lewis2015-04-261-9/+4
| | | | | | | | and asynchrinous net modules.