Problem to run quic_server with web page and http server

590 views
Skip to first unread message

Calvez Xavier

unread,
Jan 21, 2015, 5:01:38 AM1/21/15
to proto...@chromium.org
Hi all,

I have few problems to run quic_server with a static web page and a http server :

1- I create a directory "/home/quic/quic-data" for the quic_in_memory_cache_dir of the quic_server

2- In this directory, I create a directory named "Site2" : In this, I create a static web page ( one file "index.html" + one image stored in directory "img" and one video stored in directory "video" )

3- I run http server : python -m SimpleHTTPServer 80

4- I run command "cd /home/quic/quic-data && wget -p --save-headers http://192.168.1.1/Site2"

5- I edit index.html and add 2 lines :
                     X-Original-Url: http://192.168.1.1/Site2/index.html
                     Alternate-Protocol: 80:quic

6- I run quic_server : ./out/Debug/quic_server --port=80 --v=1 --quic_in_memory_cache_dir=/home/quic/quic_data

When I run quic_server, I have this error :

[0121/105044:VERBOSE1:quic_in_memory_cache.cc(105)] Attempting to initialize QuicInMemoryCache from directory: /home/quic/quic-data
[0121/105044:VERBOSE1:http_response_headers.cc(635)] missing status line
[0121/105044:VERBOSE1:http_response_headers.cc(688)] assuming HTTP/1.0
[0121/105044:VERBOSE1:http_response_headers.cc(711)] missing response status number; assuming 200
[0121/105044:FATAL:quic_in_memory_cache.cc(156)] Invalid path, ignoring: /home/quic/quic-data/Site2/index.html

My configuration is it good ?

Can you tell me how to resolve this problem ?

Cheers

Xavier Calvez




Ryan Hamilton

unread,
Jan 21, 2015, 4:17:48 PM1/21/15
to proto...@chromium.org
Can you provide the contents of index.html?

--
You received this message because you are subscribed to the Google Groups "QUIC Prototype Protocol Discussion group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to proto-quic+...@chromium.org.
To post to this group, send email to proto...@chromium.org.
For more options, visit https://groups.google.com/a/chromium.org/d/optout.

Calvez Xavier

unread,
Jan 22, 2015, 3:47:16 AM1/22/15
to proto...@chromium.org
Hi,

Yes I can;

Cheers

Xavier
index.html

Ryan Hamilton

unread,
Jan 22, 2015, 1:04:08 PM1/22/15
to proto...@chromium.org
Ah! The problem is that that X-Original-Url: header was added *before* the HTTP status line. The stats line needs to be first. So instead of:

HTTP/1.1 200 OK

You need:

HTTP/1.1 200 OK

That being said, I wonder if the URL should be "http://10.193.71.146/Site2/index.html" instead of the much longer URL in the header.

Cheers,

Ryan

Calvez Xavier

unread,
Jan 23, 2015, 9:28:30 AM1/23/15
to
Hi Ryan,

I put this line on another line, but I have got always the error message :  Invalid path, ignoring: /home/quic/quic-data/10.193.71.146/Site2/index.html

I'm using Nginx as http server, is it a problem ?

How do you proceed if you must use chrome (on Host client "A") and with quic_server (on Host "B") ?

Cheers,

Xavier
Message has been deleted

Calvez Xavier

unread,
Jan 26, 2015, 5:47:45 AM1/26/15
to proto...@chromium.org
Hi everybody,

It works now !

The source of problem was all the elements (images, videos, css, js) of a web page must contained an header with (X-original-Url and Protocol;80:quic).
Moreover, I'm using python HTTP_server in spite of Nginx

However, I've got a new problem after the web page is displayed : I can't watch my video and there are many artefacts on my image)

Have you got an idea ?

Cheers,

Xavier

Ryan Hamilton

unread,
Jan 28, 2015, 2:24:56 PM1/28/15
to proto...@chromium.org
My guess is that your site contains some amount of dynamic content which is not being faithfully preserved by dumping the content to disk.

--

Calvez Xavier

unread,
Feb 3, 2015, 12:38:56 PM2/3/15
to proto...@chromium.org
Hi all,

Thanks Xinan and Ian, all works fine !!!!

I have got several problems with nginx (add header alternate protocol not run correctly), so I decided to install apache and all work fine :)

I have 2 questions :

- When I refresh a web page with images, none is displayed and a message "bad" is displayed.
The only mean to run correctly is to clear browser cache and restart canary.
Have you ever seen this problem ?

- I have alredy got the same problem concerning my video in mp4 : must we use a cache on apache ?

Cheers

Xavier

Ryan Hamilton

unread,
Feb 3, 2015, 3:46:31 PM2/3/15
to proto...@chromium.org
On Tue, Feb 3, 2015 at 9:38 AM, Calvez Xavier <x.ca...@gmail.com> wrote:
Hi all,

Thanks Xinan and Ian, all works fine !!!!

I have got several problems with nginx (add header alternate protocol not run correctly), so I decided to install apache and all work fine :)

I have 2 questions :

- When I refresh a web page with images, none is displayed and a message "bad" is displayed.

​This is the result of fetching a URL from the quic_server which the quic_server does not know about. Sounds like the original URL in your file does not match the URL being requested.​

 
The only mean to run correctly is to clear browser cache and restart canary.
Have you ever seen this problem ?

- I have alredy got the same problem concerning my video in mp4 : must we use a cache on apache ?

Cheers

Xavier

--

Sreeja Mohan

unread,
Apr 24, 2017, 7:17:01 PM4/24/17
to QUIC Prototype Protocol Discussion group
Hi,
    I am facing the same issue. For all the objects embedded in my main web-page, I get a 404 when I request the page using quic client and server.
Could you please let me know how you added the headers X-original-Url and Protocol;80:quic to the images and css files?

Thanks,
Sreeja
Reply all
Reply to author
Forward
0 new messages