Usually the problem is the Content-Length field. I had the same kind of thing before. Most of the client side program determines whether it has received the whole page, base on the value received in Content-Length field.
Better to fix the Content-Length field when you modify the content of a page.
But, some time you don't need to fix the length, it still appears to be okay, why? That is because, the client reads in msg from socket chunk by chunk, not bytes by bytes, so there is a grey area. Look at the folllowing two examples:
- (Here is a negative case) The Content-Length = 1001, when the real content is only 1000 bytes long. Say, after received the last chunk of msg, the client received 1000 bytes, so it expects one more chunk containing the last byte, but the server has already transferred the whole content and stopped. The client will never receive any more bytes, and it just waits and waits until timeout.
- (Here is a positive case, the grey area worked) The Content-Length = 999, when the real content is 1200 bytes long. Now after received the last chunk of msg, the client received 998 bytes, so it waits for the next chunk, the server trasfers the next chunk, which is 202 bytes long, and stops. The client has now received 1200 bytes, which is greater than 999, so it is also satisfied.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.