Skip to content

gt netsocket tcp - increases threads' stack size #8132

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions TESTS/netsocket/tcp/tcp_tests.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ nsapi_error_t tcpsocket_connect_to_discard_srv(TCPSocket &sock);
int split2half_rmng_tcp_test_time(); // [s]

namespace tcp_global {
static const int TESTS_TIMEOUT = 480;
static const int TCP_OS_STACK_SIZE = 1024;
static const int TESTS_TIMEOUT = 960;
static const int TCP_OS_STACK_SIZE = 2048;

static const int RX_BUFF_SIZE = 1220;
static const int TX_BUFF_SIZE = 1220;
Expand Down
10 changes: 5 additions & 5 deletions TESTS/netsocket/tcp/tcpsocket_thread_per_socket_safety.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static const int SIGNAL_SIGIO1 = 0x1;
static const int SIGNAL_SIGIO2 = 0x2;
static const int SIGIO_TIMEOUT = 5000; //[ms]

Thread thread;
Thread thread(osPriorityNormal, tcp_global::TCP_OS_STACK_SIZE);
volatile bool running = true;
}

Expand All @@ -50,8 +50,8 @@ static void check_const_len_rand_sequence()
sock.sigio(callback(_sigio_handler1, Thread::gettid()));

static const int BUFF_SIZE = 10;
char rx_buff[BUFF_SIZE] = {0};
char tx_buff[BUFF_SIZE] = {0};
static char rx_buff[BUFF_SIZE] = {0};
static char tx_buff[BUFF_SIZE] = {0};


int bytes2process;
Expand Down Expand Up @@ -107,8 +107,8 @@ static void check_var_len_rand_sequence()
sock.sigio(callback(_sigio_handler2, Thread::gettid()));

static const int BUFF_SIZE = 1001;
char rx_buff[BUFF_SIZE];
char tx_buff[BUFF_SIZE];
static char rx_buff[BUFF_SIZE];
static char tx_buff[BUFF_SIZE];
static const int pkt_size_diff = 100;

int bytes2process;
Expand Down