This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

[closed] Client crash for bigger TCP segment

0

hi,

1) I am sending 4000 Bytes data by following command count =write(nd," xxxxxxxxxxxxx.... 4000 times" ",4000);

2) confirmed by printing count in the socket programe and by wireshark also

last packet is having PSH flag also... 3) But Rx side 1448 bytes only printing

Client is sending reset the connection ???? I under stood client is crashing ???? Some one told me to send the last packet with out PUSH flag...

Can u tell how to send last packet without push flag ???

Why my client is crashing ??? what is the best solution ????

Problem is much similar to

https://ask.wireshark.org/questions/47542/tcp-retransmission-server-sends-wrong-seqno

regards

asked 18 Nov '15, 06:44

srinu_bel's gravatar image

srinu_bel
20151620
accept rate: 0%

closed 18 Nov '15, 06:59

grahamb's gravatar image

grahamb ♦
19.8k330206

Not a topic for Wireshark, this is a network programming question.

(18 Nov '15, 06:59) grahamb ♦

The question has been closed for the following reason “Question is off-topic or not relevant” by grahamb 18 Nov ‘15, 06:59


One Answer:

0

Not the right place to ask, I'd ask that at Stackoverflow programmers' Q&A, because it is an application and/or driver related question, not Wireshark or network traffic analysis one.

But by not sending the PSH flag you'll likely not save the receiving application from crashing, as the PSH flag just tells the receiving tcp stack to flush the buffer towards the application without eventually waiting for more packets to arrive. So in my understanding, the solution would be to send smaller packets with PSH flag at the sending side, so that the application never receives too much data in one batch.

I would even dare to speculate that various applications may suffer from the same issue as their authors have misunderstood the tcp concept of a stream and can only handle messages whose size matches the popular MTU.

answered 18 Nov '15, 07:04

sindy's gravatar image

sindy
6.0k4851
accept rate: 24%