Current time: 12-02-2020, 08:18 PM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to solve "0 ms (Request Canceled)" problem?
05-05-2010, 07:02 PM
Post: #16
Question RE: How to solve "0 ms (Request Canceled)" problem?
More about network packets. Let's take this test run, namely request #8.

Response header (326 bytes + 4 bytes (2 CRs). Total 330 bytes):
Quote:HTTP/1.1 200 OK
Date: Wed, 05 May 2010 06:45:14 GMT
Server: Apache/2.2.15
Last-Modified: Tue, 04 May 2010 09:49:42 GMT
Accept-Ranges: bytes
Content-Length: 2498
Cache-Control: public, max-age=2592000
Expires: Fri, 04 Jun 2010 06:45:14 GMT
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: image/jpeg

As we can see, image is 2498 bytes long. So how it fits into packets? If we want to squeeze it into 2 packets, total image size should be smaller than:
payload * packetcount - header
We translate this to bytes, and get:
1460 * 2 - 330 = 2590
Mathematicians says that 2498 is smaller than 2590. Tadaaa. We win!

Also, to reduce response header size, someone may consider to remove Last-Modified header line (e.g. Last-Modified: Tue, 04 May 2010 09:49:42 GMT). But, after image expires (1 month: Expires: Fri, 04 Jun 2010 06:45:14 GMT), there will be penalty in form of new image download (200), instead of not modified (304). Think.

Back to work Smile
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How to solve "0 ms (Request Canceled)" problem? - laboot - 05-05-2010 07:02 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)