Close pipes for inproc sockets on zmq_disconnect

- fixes LIBZMQ-476 and LIBZMQ-475
This commit is contained in:
Stefan Radomski
2012-12-04 15:14:21 +01:00
parent b2f6741bcb
commit 66c22456b9
6 changed files with 162 additions and 2 deletions

View File

@@ -170,6 +170,10 @@ namespace zmq
typedef std::multimap <std::string, own_t *> endpoints_t;
endpoints_t endpoints;
// Map of open inproc endpoints.
typedef std::multimap <std::string, pipe_t *> inprocs_t;
inprocs_t inprocs;
// To be called after processing commands or invoking any command
// handlers explicitly. If required, it will deallocate the socket.
void check_destroy ();