This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

http server tiny packets from MCB2300

Sometimes the HTTP server gets in a state where it serves a web page made up of tiny packets, with some containing as few as 2 bytes. Consequently the page comes up slowly in the browser.

If I reset the board, the problem goes away. I haven't figured out how to reproduce it predictably.

These packets come very close together. I thought the HTTP server used delayed ACK?

Parents
  • Yes, I see that packets come in pairs, one "large", followed immediately by a 4 byte packet. Perhaps you did this to get around Windows XP's delayed ack algorithm. The problem is the "large" one is not large enough when it gets in this mode. For example:

    send 6 bytes
    send 4 bytes
    get ack
    wait 100 ms
    send 3 bytes
    send 4 bytes
    wait 100ms
    .. and so on for several seconds.

    There is always about 100mS from the ack to the next pair of tiny packets. I'll try to work out a small scenario to reproduce it, as I don't want to send all my source code.

    Dave

Reply
  • Yes, I see that packets come in pairs, one "large", followed immediately by a 4 byte packet. Perhaps you did this to get around Windows XP's delayed ack algorithm. The problem is the "large" one is not large enough when it gets in this mode. For example:

    send 6 bytes
    send 4 bytes
    get ack
    wait 100 ms
    send 3 bytes
    send 4 bytes
    wait 100ms
    .. and so on for several seconds.

    There is always about 100mS from the ack to the next pair of tiny packets. I'll try to work out a small scenario to reproduce it, as I don't want to send all my source code.

    Dave

Children