Skip to content

Commit 8c5c905

Browse files
committed
Limit size of equeue for sigio net test
1 parent 0d1dc83 commit 8c5c905

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TESTS/netsocket/socket_sigio/main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void prep_buffer() {
105105
void test_socket_attach() {
106106
// Dispatch event queue
107107
Thread eventThread;
108-
EventQueue queue;
108+
EventQueue queue(4*EVENTS_EVENT_SIZE);
109109
eventThread.start(callback(&queue, &EventQueue::dispatch_forever));
110110

111111
printf("TCP client IP Address is %s\r\n", net->get_ip_address());
@@ -139,7 +139,7 @@ void cb_pass() {
139139
void test_socket_detach() {
140140
// Dispatch event queue
141141
Thread eventThread;
142-
EventQueue queue;
142+
EventQueue queue(4*EVENTS_EVENT_SIZE);
143143
eventThread.start(callback(&queue, &EventQueue::dispatch_forever));
144144

145145
printf("TCP client IP Address is %s\r\n", net->get_ip_address());
@@ -166,7 +166,7 @@ void test_socket_detach() {
166166
void test_socket_reattach() {
167167
// Dispatch event queue
168168
Thread eventThread;
169-
EventQueue queue;
169+
EventQueue queue(4*EVENTS_EVENT_SIZE);
170170
eventThread.start(callback(&queue, &EventQueue::dispatch_forever));
171171

172172
printf("TCP client IP Address is %s\r\n", net->get_ip_address());

0 commit comments

Comments
 (0)