From 4307a5aef2ed439f9e6ea2ea4bb68b572f06fea8 Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 18 Oct 2017 14:33:58 +0100 Subject: [PATCH] Removing the timeout of the socket. --- srsepc/src/mme/s1ap.cc | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/srsepc/src/mme/s1ap.cc b/srsepc/src/mme/s1ap.cc index cd4b58c9b..08937142e 100644 --- a/srsepc/src/mme/s1ap.cc +++ b/srsepc/src/mme/s1ap.cc @@ -97,15 +97,7 @@ s1ap::enb_listen() return -1; } - //Set timeout - struct timeval timeout; - timeout.tv_sec = 1; - timeout.tv_usec = 0; - if (setsockopt (sock_fd, SOL_SOCKET, SO_RCVTIMEO, (char *)&timeout, sizeof(timeout)) < 0){ - m_s1ap_log->console("Set socket timeout failed\n"); - return -1; - } - + //Sets the data_io_event to be able to use sendrecv_info bzero (&evnts, sizeof (evnts)) ; evnts.sctp_data_io_event = 1; if(setsockopt(sock_fd, IPPROTO_SCTP, SCTP_EVENTS, &evnts, sizeof (evnts))){