aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
* fixes #744 ZeroTier should not create node until first referencedGarrett D'Amore2018-10-17
|
* eliminate double check for index.html if index.html existsQXSoftware2018-10-15
|
* remove unused function declarationQXSoftware2018-10-12
|
* remove redundant zero memory operationsQXSoftware2018-10-12
|
* Fix win file type (#749)Hunter2018-10-12
| | | | | before: nni_file_is_dir with path D:\\ D:/ D: all returns false after: nni_file_is_dir with path D:\\ D:/ D: all returns true
* fixes #745 HTTP server redirect handlerGarrett D'Amore2018-10-07
|
* fix function "int nni_msg_alloc(nni_msg **mp, size_t sz)" allocates the ↵QXSoftware2018-10-02
| | | | underlying buffer twice under some circumstance, say, sz = 1024 or 2048
* use index together with increment operator(postfix form)QXSoftware2018-10-02
|
* update the comment (nng_msgq_put_until doesn't exists anymore)QXSoftware2018-10-02
|
* fixes #738 http server needs a way to collect request entity dataGarrett D'Amore2018-09-29
|
* fixes #735 Configuring ZeroTier for a unified build is too hardGarrett D'Amore2018-09-24
| | | | | | | This changes the code to make use of a different project we have created (libzerotiercore) that is "CMake clean". This should make using and configuring this code *much* better. It may also have the benefit of making this configuration work better for Windows systems.
* fixes #734 ZeroTier port discrimination bustedGarrett D'Amore2018-09-21
| | | | | | This reverts 707, and provides a correct fix for busted port discrimination. It also has a few minor cleanups and reduces the listen timeout to 10 seconds.
* cmake: add missing target_include_directories to fix target exportMarc-André Moreau2018-09-20
|
* Only free in nng_send() if we succeed.Lawrence Kesteloot2018-09-15
| | | | | | | Both the man page and the comment (in nng.h) of nng_send() say that the buffer is freed only if the function succeeds. The previous code always freed (if the flag was set). This change only frees if we succeed.
* fixes #717 need nng_http_req_reset and nng_http_res_resetGarrett D'Amore2018-09-12
| | | | | fixes #718 http_transact is still not right fixes #719 calculation of buffer size is incorrect in http
* fixes #720 fix for #715 still not rightGarrett D'Amore2018-09-12
| | | | | | | | | | | | | | | The fix for #715 to address const is still not quite right. In ISO C, the argv array is just char **. getopt() in POSIX uses char *const[]. That part is right, but we should then not pass const char ** in calls. Furthermore, really the optarg should also not be constified. This aligns us closer to getopt() and leads to the fewest problems. This does represent a slight breaking change, but as old code should still compile and run, we don't think we should bump the API version for this change. Furthermore, we don't think anyone else is actually using this API yet.
* fixes #721 stale #if 0 block in stats.hGarrett D'Amore2018-09-12
|
* fixes #715 nng_opts_parse() uses const incorrectlyGarrett D'Amore2018-09-10
|
* fixes #714 Incomplete reset of RES/REQ breaks http_transactGarrett D'Amore2018-09-10
|
* fixes #713 stats warnings from WindowsGarrett D'Amore2018-09-09
|
* fixes #712 windows nni_atomic_set64 should not return valueGarrett D'Amore2018-09-09
|
* fixes #710 idhash has nasty performance bugGarrett D'Amore2018-09-09
| | | | fixes #709 idhash bug on duplicate add
* remove unused typedefQXSoftware2018-09-09
|
* remove redundant zero memsetQXSoftware2018-09-09
|
* fixes #707 ZeroTier pipe logic could be condensedGarrett D'Amore2018-09-07
|
* fixes #4 Statistics supportGarrett D'Amore2018-09-03
| | | | | | | | | | | | | | | | This introduces new public APIs for obtaining statistics, and adds some generic stats for dialers, listeners, pipes, and sockets. Also added are stats for inproc and pairv1 protocol. The other protocols and transports will have stats added incrementally as time goes on. A simple test program, and man pages are provided for this. Start by looking at nng_stat(5). Statistics does have some impact, and they can be disabled by using the advanced NNG_ENABLE_STATS (setting it to OFF, it's ON by default) if you need to build a minimized configuration.
* fixes #693 Failed dial results in hard spinGarrett D'Amore2018-08-31
|
* fixes #691 Desire 16 and 64 bit message manipulatorsGarrett D'Amore2018-08-31
| | | | | | We use macros to generate message bodies for each of the various variants, reducing source code size (but not compiled size). The documentation is updated to indicate each of these variants.
* fixes #690 Zerotier listener LOCADDR property wantedGarrett D'Amore2018-08-31
| | | | | While here we separate out the dialer and listener options, so that options for tuning connection are only available for listeners.
* fixes #681 HTTP convenience GET method desired...Garrett D'Amore2018-08-30
| | | | | This adds a couple of new methods, and related documentation and test cases.
* fixes #687 POLLHUP is problematic on macOS too...Garrett D'Amore2018-08-30
| | | | | | | | | Basically, we can ignore EV_EOF, as we wind up still alerting the corresponding events. EV_ERROR we still treat as HUP. (The EV_EOF was responsible for prematurely closing the socket and aborting transactions while there was still data in the socket buffers.)
* fixes #686 strtoull() not present on WindowsGarrett D'Amore2018-08-30
| | | | | | This both makes new functions available to the core, and addresses a bug which would have prevented building the ZeroTier transport on Windows.
* fixes #684 CentOS 5 broken -- has epoll but not eventfdGarrett D'Amore2018-08-30
|
* fixes #683 atomic 64 stuff broken on pre-C11 stacksGarrett D'Amore2018-08-29
|
* fixes #678 local binding for TLS+TCP socketsGarrett D'Amore2018-08-28
|
* fixes #673 transports could benefit from access to upper layerGarrett D'Amore2018-08-27
|
* fixes #674 want 64-bit atomics (for stats)Garrett D'Amore2018-08-27
|
* fixes #608 Add TCP support to specify local network interfaceGarrett D'Amore2018-08-27
| | | | | This also fixes a leaked TCP connection on a failure path, which we noticed while working this change.
* fixes #669 pipe.c type conversion warningGarrett D'Amore2018-08-20
|
* fixes #668 Remove the old win_event stuffGarrett D'Amore2018-08-20
|
* fixes #665 Convert Windows UDP to raw IOCPGarrett D'Amore2018-08-20
|
* fixes #232 Add cancellation support to HTTP handler APIGarrett D'Amore2018-08-20
| | | | | Well, actually, #506 fixed that, but this fixes the commentary that indicates otherwise in the code.
* fixes #506 AIO "providers" need a way to call nni_aio_schedule.Garrett D'Amore2018-08-20
|
* fixes #664 aio cancellation could be betterGarrett D'Amore2018-08-20
| | | | | | | | | This changes the signature of the aio cancellation routines to take the argument for cancellation directly, so we do not need to lookup the argument using the nni_aio_get_prov_data. We should probably consider eliminating nni_aio_get_prov_data, and co, and changing the prov_extra to reflect prov_data. Later.
* fixes #541 inproc does not honor maxrecvsize optionGarrett D'Amore2018-08-20
|
* fixes #662 Configuring without HTTP failsGarrett D'Amore2018-08-20
|
* fixes #638 Race condition detected in websocketGarrett D'Amore2018-08-19
| | | | fixes #651 Use after free in websocket
* Remove dead #if 0 code in dialer.Garrett D'Amore2018-08-19
|
* fixes #653 Weird connect failures in dialer (multistress) (#660)Garrett D'Amore2018-08-20
| | | | | | | The POLLHUP (or rather EPOLLHUP) flag does not quite mean the same thing in Linux, and we've seen random failures where we will sometimes get this event on a socket that is freshly connected. This might be a bug in Linux, but it is easy enough to workaround -- we just don't watch for it at all.
* fixed compilation error on OpenBSD, missing sockpeercred (#659)Francisc Simon2018-08-19
| | | fixed compilation error on OpenBSD, missing sockpeercred