mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-07 05:58:45 +01:00
Problem: test_large_msg kills my system temporarily
And I'm on a reasonably sized laptop. I think allocating INT_MAX memory is dangerous in a test case. Solution: expose this as a context option. I've used ZMQ_MAX_MSGSZ and documented it and implemented the API. However I don't know how to get the parent context for a socket, so the code in zmq.cpp is still unfinished.
This commit is contained in:
@@ -245,7 +245,7 @@ namespace zmq
|
||||
void update_pipe_options(int option_);
|
||||
|
||||
// Socket's mailbox object.
|
||||
i_mailbox* mailbox;
|
||||
i_mailbox *mailbox;
|
||||
|
||||
// List of attached pipes.
|
||||
typedef array_t <pipe_t, 3> pipes_t;
|
||||
|
||||
Reference in New Issue
Block a user