This is our old Q&A Site. Please post any new questions and answers at


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


asked 18 Nov '15, 06:44

srinu_bel's gravatar image

accept rate: 0%

closed 18 Nov '15, 06:59

grahamb's gravatar image

grahamb ♦

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

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.

permanent link

answered 18 Nov '15, 07:04

sindy's gravatar image

accept rate: 24%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 18 Nov '15, 06:44

question was seen: 1,141 times

last updated: 18 Nov '15, 07:04

p​o​w​e​r​e​d by O​S​Q​A