aboutsummaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/lwip_src
diff options
context:
space:
mode:
Diffstat (limited to 'stacks/lwip_stack/lwip_src')
-rw-r--r--stacks/lwip_stack/lwip_src/api/spl_api_msg.c2
-rw-r--r--stacks/lwip_stack/lwip_src/common/stackxopts.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
index f437bce..b7ea24b 100644
--- a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
+++ b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
@@ -647,7 +647,7 @@ spl_sent_tcp (void *arg, struct tcp_pcb * pcb, u16_t len)
/* conn is already checked for NULL above with ASSERT */
/* If the queued byte- or pbuf-count drops below the configured low-water limit,
let select mark this pcb as writable again. */
- if (conn->snd_buf > TCP_SNDLOWAT)
+ if (pcb->snd_buf > TCP_SNDLOWAT)
{
conn->flags &= ~SPL_NETCONN_FLAG_CHECK_WRITESPACE;
if (((struct common_pcb *) conn->comm_pcb_data)->model == SOCKET_STACKX)
diff --git a/stacks/lwip_stack/lwip_src/common/stackxopts.h b/stacks/lwip_stack/lwip_src/common/stackxopts.h
index 15fc6b8..04ff67d 100644
--- a/stacks/lwip_stack/lwip_src/common/stackxopts.h
+++ b/stacks/lwip_stack/lwip_src/common/stackxopts.h
@@ -48,6 +48,6 @@ extern struct memory_statics memory_used_size[80];
#define SPL_TCP_HLEN 20
#define SPL_TCP_MAX_OPTION_LEN 40
#define SPL_FRAME_MTU 1500
-#define SPL_TCP_SEND_MAX_SEG_PER_MSG 5
+#define SPL_TCP_SEND_MAX_SEG_PER_MSG 25
#endif