gdamore on master
Silence NNI_ASSERT warnings whe… (compare)
Hi! I have a rep TCP server which implements a small stateful protocol using a fixed pool of nng_aio/nng_ctx.
Ideally I'd like to drop (RST) peers which commit a protocol violation: free up the connection and context for another peer. I'm feeling that perhaps that this is a TCP-transport-specific idea and I'm not too sure how to marry what I'm trying to do with how the nng APIs are designed to be used.
One idea I've had has been to approach it in the same way as the REST server example, which involves closing and then recreating the nng_ctx for each new client.
nng_http_serverwhich the REST example uses. Or just a description of the pattern more broadly.
Thank you for the great library!