return ERR_MEM;
return ERR_OK;
}
-/* TODO: message which arrives may be NULL */
+/* message which arrives may be NULL */
/* blocks the thread until a message arrives in the mailbox or timeout expires */
u32_t sys_arch_mbox_fetch(sys_mbox_t *mbox, void **msg, u32_t timeout)
{
** Memory Options
*****************************************************************************/
#define MEM_ALIGNMENT 4 /* dflt 1 */
-#define MEM_SIZE 1600 // (30 * 1024) /* 30K */ /* dflt 1600 */
-#define MEMP_NUM_PBUF 16 // 48 /* dflt 16 */
-#define MEMP_NUM_TCP_PCB 5 // 16 /* dflt 5 */
-#define PBUF_POOL_SIZE 16 // 96 /* dflt 16 */
+#define MEM_SIZE (30 * 1024) /* 30K */ /* dflt 1600 */
+#define MEMP_NUM_PBUF 48 /* dflt 16 */
+#define MEMP_NUM_TCP_PCB 16 /* dflt 5 */
+#define PBUF_POOL_SIZE 96 /* dflt 16 */
/*****************************************************************************
** IP Options
/*****************************************************************************
** TCP Options
*****************************************************************************/
-#define TCP_WND 2048 // 4096 /* default is 2048 */
-#define TCP_MSS 128 // 1500 /* default is 128 */
+#define TCP_WND 4096 /* default is 2048 */
+#define TCP_MSS 1500 /* default is 128 */
#define TCP_SND_BUF (4 * TCP_MSS)
/*****************************************************************************
*****************************************************************************/
#define LWIP_SOCKET 0 /* default is 1 */
-#define LWIP_SO_RCVTIMEO 0 /* enable receive timeout; default is 0 */
+#define LWIP_SO_RCVTIMEO 1 /* enable receive timeout; default is 0 */
/*****************************************************************************
** Debugging options