diff options
| author | Garrett D'Amore <garrett@damore.org> | 2018-04-20 20:52:32 -0700 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2018-04-24 15:06:33 -0700 |
| commit | fdefff742662ed4eb476bf19b9dda245f86bc406 (patch) | |
| tree | a4e132716debd64e434478f8814f368db052cbc6 /tests/reqpoll.c | |
| parent | e0b47b12d3d1462d07c5038e4f34f5282eeec675 (diff) | |
| download | nng-fdefff742662ed4eb476bf19b9dda245f86bc406.tar.gz nng-fdefff742662ed4eb476bf19b9dda245f86bc406.tar.bz2 nng-fdefff742662ed4eb476bf19b9dda245f86bc406.zip | |
fixes #342 Want Surveyor/Respondent context support
fixes #360 core should nng_aio_begin before nng_aio_finish_error
fixes #361 nng_send_aio should check for NULL message
fixes #362 nni_msgq does not signal pollable on certain events
This adds support for contexts for both sides of the surveyor pattern.
Prior to this commit, the raw mode was completely broken, and there
were numerous other bugs found and fixed. This integration includes
*much* deeper validation of this pattern.
Some changes to the core and other patterns have been made, where it
was obvioius that we could make such improvements. (The obviousness
stemming from the fact that RESPONDENT in particular is very closely
derived from REP.)
Diffstat (limited to 'tests/reqpoll.c')
| -rw-r--r-- | tests/reqpoll.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/reqpoll.c b/tests/reqpoll.c index 64c8df66..aeee7d0b 100644 --- a/tests/reqpoll.c +++ b/tests/reqpoll.c @@ -55,7 +55,7 @@ TestMain("REQ pollable", { atexit(nng_fini); - Convey("Given a connected REQ/REP pair", { + Convey("Given a REQ/REP pair", { nng_socket req; nng_socket rep; nng_ctx ctx; @@ -74,7 +74,7 @@ TestMain("REQ pollable", { Convey("REQ ctx not pollable", { int fd; So(nng_ctx_open(&ctx, req) == 0); - Reset({ nng_ctx_close(req); }); + Reset({ nng_ctx_close(ctx); }); So(nng_ctx_getopt_int(ctx, NNG_OPT_SENDFD, &fd) == NNG_ENOTSUP); So(nng_ctx_getopt_int(ctx, NNG_OPT_RECVFD, &fd) == @@ -87,7 +87,7 @@ TestMain("REQ pollable", { So(nng_getopt_int(req, NNG_OPT_SENDFD, &fd) == 0); So(isready(fd) == false); - Convey("And becomes readable on connect", { + Convey("And becomes writable on connect", { So(nng_dial(req, "inproc://ctx1", NULL, 0) == 0); nng_msleep(100); |
