We've written a Wt-based instrument control application that we've used 
in-house for months with no problems.  Recently, the guy who runs it asked me 
if it would be possible to serve the application over SSL instead of the 
standard, unencrypted thing wthttpd does.  I know nothing about this, but I 
managed to get Wt recompiled with openSSL support, and generate the necessary 
keys and certificate as per the instructions on the wiki.  When I start the 
application now, I can connect to it using https and it appears to work 
properly but it is extremely sluggish and it occasionally misses events (like 
single clicking on a WIconPair).

The application is constantly updating information read from the instrument 
being controlled.  Those updates are driven by a WTimer set to expire at 1 
second intervals.  When I looked at the messages being printed in the window 
where I start the application, it appears the session is getting refreshed 
every time the timer expires and all the associated images and other resources 
are being reloaded.  These constant session refreshes only happen when I'm 
using https.

I don't really understand what I am doing, so it's quite likely I've left 
something out or I have otherwise done something stupid.  Can anyone shed any 
light on this?  As it is, the application is unusable with an https connection 
because of all the session refreshes.

Details:

I am using Wt version 3.1.6 compiled from source on Ubuntu 10.04LTS 64-bit.

I normally start the application as follows for regular (non SSL) connections

   ./application --http-port 11000  --http-addr 0.0.0.0  --docroot .

When run that way, everything operates fine and I don't get the session 
refreshes.  For these initial SSL tests, I have instead been starting the 
application as follows

 ./application --https-address 0.0.0.0 --http-port 11000 
--ssl-certificate=server.pem --ssl-private-key=server.pem 
--ssl-tmp-dh=dh512.pem --docroot .

server.pem and dh512.pem were created following the instructions on the Wt wiki.

Finally, here is a snippet of the messages generated to the terminal when I 
start the application.  You can see the "Refreshing session" messages appearing 
at 1 second intervals along with all the resource reloads.

[2010-Dec-17 08:36:58.480920] 32037 [/ qVDVvZURXskCGkoS] [notice] "Refreshing 
session"
127.0.0.1 - - [2010-Dec-17 08:36:58.485686] "GET /?wtd=qVDVvZURXskCGkoS&js=no 
HTTP/1.1" 200 3096
127.0.0.1 - - [2010-Dec-17 08:36:58.501599] "GET 
/resources//themes/default/wt.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.503166] "GET /webGUI.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.506466] "GET /img/controlStateMachine.png 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.530243] "GET /controlModule.css HTTP/1.1" 
304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.531721] "GET /flowModule.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.533383] "GET /statusModule.css HTTP/1.1" 
304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.554462] "GET /resources//tab_b.gif 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.556193] "GET /resources//tab_r.gif 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:58.557806] "GET /resources//tab_l.gif 
HTTP/1.1" 304 0
[2010-Dec-17 08:36:59.614375] 32037 [/ qVDVvZURXskCGkoS] [notice] "Refreshing 
session"
127.0.0.1 - - [2010-Dec-17 08:36:59.621751] "GET /?wtd=qVDVvZURXskCGkoS&js=no 
HTTP/1.1" 200 3096
127.0.0.1 - - [2010-Dec-17 08:36:59.636272] "GET 
/resources//themes/default/wt.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.637828] "GET /webGUI.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.641142] "GET /img/controlStateMachine.png 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.664316] "GET /controlModule.css HTTP/1.1" 
304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.665854] "GET /flowModule.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.667359] "GET /statusModule.css HTTP/1.1" 
304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.687946] "GET /resources//tab_b.gif 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.689750] "GET /resources//tab_r.gif 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:36:59.691414] "GET /resources//tab_l.gif 
HTTP/1.1" 304 0
[2010-Dec-17 08:37:00.735042] 32037 [/ qVDVvZURXskCGkoS] [notice] "Refreshing 
session"
127.0.0.1 - - [2010-Dec-17 08:37:00.739824] "GET /?wtd=qVDVvZURXskCGkoS&js=no 
HTTP/1.1" 200 3096
127.0.0.1 - - [2010-Dec-17 08:37:00.754875] "GET 
/resources//themes/default/wt.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.756717] "GET /webGUI.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.759958] "GET /img/controlStateMachine.png 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.783181] "GET /controlModule.css HTTP/1.1" 
304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.784769] "GET /flowModule.css HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.786405] "GET /statusModule.css HTTP/1.1" 
304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.807177] "GET /resources//tab_b.gif 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.808953] "GET /resources//tab_r.gif 
HTTP/1.1" 304 0
127.0.0.1 - - [2010-Dec-17 08:37:00.810640] "GET /resources//tab_l.gif 
HTTP/1.1" 304 0


------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to