Skip to content

Commit

Permalink
lte/alt1250: Fix bug that caused connect() to get stuck
Browse files Browse the repository at this point in the history
Fix bug that connect() gets stuck when 6 sockets are opened
in parallel and connect() is executed for the 6th socket.
The maximum number of sockets that can be opened is now limited to 5.
  • Loading branch information
SPRESENSE committed May 17, 2022
1 parent 7e96a64 commit 3e9e63a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lte/alt1250/alt1250_daemon.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,9 @@
* Pre-processor Definitions
****************************************************************************/

#if defined(CONFIG_NET_USRSOCK_CONNS)
# if (CONFIG_NET_USRSOCK_CONNS > ALTCOM_NSOCKET)
# define SOCKET_COUNT ALTCOM_NSOCKET
# else
# define SOCKET_COUNT CONFIG_NET_USRSOCK_CONNS
# endif
#else
# define SOCKET_COUNT ALTCOM_NSOCKET
#endif
/* The maximum number of sockets that the ALT1250 modem can open. */

#define SOCKET_COUNT 5

#define _TX_BUFF_SIZE (1500)
#define _RX_BUFF_SIZE (1500)
Expand Down

0 comments on commit 3e9e63a

Please sign in to comment.