test code is refiend

This commit is contained in:
Sukchan Lee 2017-02-14 22:58:02 +09:00
parent 1641bba934
commit 4889d0162a
4 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@ extern "C" {
#include <sys/socket.h>
#endif
#define MAX_NET_POOL_SIZE 256
#define MAX_NET_POOL_SIZE 512
/* Max length of interface name, ex: eth0, ath0 .. */
#define MAX_IFNAME_LEN 16

View File

@ -631,6 +631,7 @@ int net_accept(net_sock_t **new_accept_sock, net_sock_t *net_sock, int timeout)
{
net_sock_t *node = NULL;
pool_alloc_node(&net_pool, &node);
d_assert(node, return -1, "Pool Allocation Failed");
new_sock = accept(sock, NULL, NULL);
node->sock_id = new_sock;

View File

@ -10,7 +10,7 @@
/* Server */
#include "event.h"
#define EVT_Q_DEPTH 32
#define EVT_Q_DEPTH 16
msgq_id event_create(void)
{

View File

@ -126,6 +126,9 @@ void mme_state_operational(mme_sm_t *s, event_t *e)
fsm_clear((fsm_t*)&enb->s1_sm);
}
net_unregister_sock(sock);
net_close(sock);
enb_ctx_remove(enb);
d_info("eNB-S1[%x] connection refused!!!", enb->id);
}
@ -135,9 +138,6 @@ void mme_state_operational(mme_sm_t *s, event_t *e)
INET_NTOP(&sock->remote.sin_addr.s_addr, buf));
}
net_unregister_sock(sock);
net_close(sock);
break;
}
default: