summaryrefslogtreecommitdiff
path: root/tests/tcp.c
Commit message (Collapse)AuthorAgeFilesLines
* fix: nn_dns_check_hostname returns EINVAL for domain names with the dot at ↵drunk-owl2017-10-031-3/+0
| | | | the end
* fixes #617 nn_bind does not fail when binding to an already bound TCP portGarrett D'Amore2016-05-311-15/+6
|
* fixes #658 Add parallelized travis builds and testsSnaipe2016-04-221-18/+24
|
* fixes #478 tcp test incorrect use of dummy buffer variableGarrett D'Amore2015-10-221-1/+2
|
* fixes #463 tcp shutdown and close unstableryoung2015-10-211-1/+17
| | | | | | Fix crash during socket shutdown while in binding state This is the code fix from commit 713d1e64 with a unit test that doesn't depend on the nn_geterror function introduced in commit d484d052
* fixes #461 add new NN_RCVMAXSIZE socket optionbryan newbold2015-09-101-0/+30
| | | | | | | | | | | | See nn_getsockopt man page for details. This option can be accessed in transport code via the nn_pipebase_getopt() function. Includes an implementation only for the 'tcp' transport, and basic tests in tests/tcp.c. Fixes #461 (New feature: NN_RCVMAXSIZE socket option).
* Copyright transfer from 250bpm s.r.o. to Martin SustrikMartin Sustrik2014-11-121-1/+1
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* IPC re-binding implementedMartin Sustrik2014-11-071-4/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Bug in Win version of usock fixedMartin Sustrik2014-11-041-11/+1
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Revert "Additional TCP test enabled on Windows"Martin Sustrik2014-11-031-0/+2
| | | | This reverts commit 9245d1f6123e26a05e9b84c07e6c694b646dc28a.
* Additional TCP test enabled on WindowsMartin Sustrik2014-11-031-2/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Fix in tcp test to avoid unrelated problem with IOCPMartin Sustrik2014-11-031-4/+12
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Failing test disabled for WindowsMartin Sustrik2014-11-011-0/+2
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Added support for re-bind on already boud socketVlad Seryakov2014-11-011-0/+21
| | | | | | indefinetely using the same RECONNECT_IVL configuration Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* tests for rejected connections addedMartin Sustrik2013-10-311-0/+13
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Part of tests are refactoredPaul Colomiets2013-09-061-48/+20
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Hostname lables are not allowed to be emptyMartin Sustrik2013-09-041-0/+9
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Hostname syntax is validated before resolving itMartin Sustrik2013-09-041-0/+12
| | | | | | Fix for issue #120 Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* "All rights reserved" clause added to copyright statements.Martin Sustrik2013-08-051-1/+1
| | | | | | | The phrase should not be needed under Berne convention, however, adding it should not hurt. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Bug in TCP connection string parsing fixedMartin Sustrik2013-06-281-0/+3
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* More work on IOCP supportMartin Sustrik2013-06-101-1/+1
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* TCP connect and bind check whether the address supplied is valid straight awayMartin Sustrik2013-05-231-2/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* TCP transport if functional nowMartin Sustrik2013-05-231-0/+2
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Removing old non-functional code.Martin Sustrik2013-05-021-2/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* TCP optset implementedMartin Sustrik2013-03-301-2/+22
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Rigorous validation of TCP connection stringsMartin Sustrik2013-03-291-1/+3
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* New test added to tests/tcp.cMartin Sustrik2013-03-291-0/+10
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* TCP transport allows to specify local interfce when connectingMartin Sustrik2013-03-291-2/+3
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Individual transport tests do actual batch transfersMartin Sustrik2013-03-231-2/+2
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* tcp and ipc tests updated to use non-VSM messages.Martin Sustrik2013-03-141-3/+3
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Separate unit tests and stress tests.Nir Soffer2013-03-031-32/+0
| | | | | | | | | The transports tests mix unit tests and stress tests, causing failures because of mis-configured system to look like library bugs. This patch move the shutdown stress test to separate files. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Testing for invalid NIC name added to tcp testMartin Sustrik2013-02-201-0/+9
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Add testing for non-numeric ports in tcp testMartin Sustrik2013-02-201-0/+3
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Validity of address string checked in nn_connect()Martin Sustrik2013-02-201-0/+10
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Replace duplicate socket addresses with constantNir Soffer2013-02-171-5/+6
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Bug in non-blocking TCP connect fixedMartin Sustrik2013-02-141-2/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Shutdown stress tests for IPC and TCP addedMartin Sustrik2013-02-141-0/+36
| | | | | | These test are temporarily disabled. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Shutdown stress test for inproc transport added to the test suiteMartin Sustrik2013-02-141-3/+1
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* nn_init() removed; nn_term() repurposedMartin Sustrik2013-02-041-5/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* sp_ prefixes changed to nn_ prefixesMartin Sustrik2013-01-221-25/+25
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Socket option levels implementedMartin Sustrik2012-12-311-0/+2
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* More work on TCP shutdownMartin Sustrik2012-12-181-1/+1
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Missing include addedMartin Sustrik2012-12-111-4/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* usock knows whether the underlying fd is registered with poller (POSIX version)Martin Sustrik2012-12-091-0/+13
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* inproc test addedMartin Sustrik2012-12-041-0/+13
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Bug in data batching fixedMartin Sustrik2012-12-041-6/+18
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Individual tests don't print their name (CMake does that)Martin Sustrik2012-12-021-4/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* More work on TCP sessionMartin Sustrik2012-11-261-2/+0
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Initial work on TCP protocol header exchangeMartin Sustrik2012-11-241-0/+2
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
* Initial work on TCP re-connect functionalityMartin Sustrik2012-11-241-4/+10
| | | | Signed-off-by: Martin Sustrik <sustrik@250bpm.com>