Discussion:
[Wt-interest] Auto Refresh in a Wt Application
B V Raghav
2015-04-17 01:47:37 UTC
Permalink
Invariably with all my witty applications, I see that the page refreshes
automatically, after some time [not consistent, but every 5 minutes],
losing all information about the current state.

I have documented two instances where the behaviour is repeated:
1. Hello world example
https://drive.google.com/open?id=0B_Cj6nIE_2VAWXdSQ1plUHlhcXM&authuser=0
2. Sum Widget -- I created for learning.
https://drive.google.com/open?id=0B_Cj6nIE_2VAYzFNdUZNZDlpbEU&authuser=0

Both the examples had been created with the following configuration:
Boost 1.55.0
Wt 3.3.0
Gcc 4.7.2
Apache 2.2.22
mod_fcgid 2.3.6

Deployment using Wtfcgi on Apache Httpd

Wt Config [Override on approot]
---
<server>
<application-settings location="*">
<session-management>
<reload-is-new-session>false</reload-is-new-session>
</session-management>
<connector-fcgi>
<run-directory>/home/bvr/var/run/wt</run-directory>
</connector-fcgi>
<log-config>* debug</log-config>
</application-settings>
</server>

My Questions:
1. Is this a bug or a feature?
2. This might be a server-initiated update, or a periodic client-side
update. However, can the values in the widget be preserved during such an
update?

Thanks,
--
(b v raghav)

***@gmail.com
Wim Dumon
2015-04-17 13:07:02 UTC
Permalink
Hello,

This is definately not intended behaviour. My first impression is most
likely a problem related to deployment. Do you see any errors or weird
messages in the logs?

BR,
Wim.
Post by B V Raghav
Invariably with all my witty applications, I see that the page refreshes
automatically, after some time [not consistent, but every 5 minutes],
losing all information about the current state.
1. Hello world example
https://drive.google.com/open?id=0B_Cj6nIE_2VAWXdSQ1plUHlhcXM&authuser=0
2. Sum Widget -- I created for learning.
https://drive.google.com/open?id=0B_Cj6nIE_2VAYzFNdUZNZDlpbEU&authuser=0
Boost 1.55.0
Wt 3.3.0
Gcc 4.7.2
Apache 2.2.22
mod_fcgid 2.3.6
Deployment using Wtfcgi on Apache Httpd
Wt Config [Override on approot]
---
<server>
<application-settings location="*">
<session-management>
<reload-is-new-session>false</reload-is-new-session>
</session-management>
<connector-fcgi>
<run-directory>/home/bvr/var/run/wt</run-directory>
</connector-fcgi>
<log-config>* debug</log-config>
</application-settings>
</server>
1. Is this a bug or a feature?
2. This might be a server-initiated update, or a periodic client-side
update. However, can the values in the widget be preserved during such an
update?
Thanks,
--
(b v raghav)
------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live
exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual-
event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
witty-interest mailing list
https://lists.sourceforge.net/lists/listinfo/witty-interest
B V Raghav
2015-04-29 18:04:27 UTC
Permalink
Dear Wim,

With too little experience, I dont think I can judge by the logs. I have
nevertheless created pastebin archive of the access log and error log, just
after one refresh automatically happened.

Here are the links:
Access Logs: http://pastebin.com/ttgBQhpt
Error Logs: http://pastebin.com/35V3ec8E

Here are the observations:

At line 2942 there is a 'signal from dead session, sending reload' - This
is due to some unknown reason - after 33 inputs in the same session, there
was a reload.

At line 3102, there is a 'shutdown (caught SIGTERM)' at approx 120 sec
later.

At line 3120 there is again the same 'signal from dead session, sending
reload' - This is on an idle session, almost 300 sec later.


Does that provide any clue?

Thanks,
Post by B V Raghav
Invariably with all my witty applications, I see that the page refreshes
automatically, after some time [not consistent, but every 5 minutes],
losing all information about the current state.
1. Hello world example
https://drive.google.com/open?id=0B_Cj6nIE_2VAWXdSQ1plUHlhcXM&authuser=0
2. Sum Widget -- I created for learning.
https://drive.google.com/open?id=0B_Cj6nIE_2VAYzFNdUZNZDlpbEU&authuser=0
Boost 1.55.0
Wt 3.3.0
Gcc 4.7.2
Apache 2.2.22
mod_fcgid 2.3.6
Deployment using Wtfcgi on Apache Httpd
Wt Config [Override on approot]
---
<server>
<application-settings location="*">
<session-management>
<reload-is-new-session>false</reload-is-new-session>
</session-management>
<connector-fcgi>
<run-directory>/home/bvr/var/run/wt</run-directory>
</connector-fcgi>
<log-config>* debug</log-config>
</application-settings>
</server>
1. Is this a bug or a feature?
2. This might be a server-initiated update, or a periodic client-side
update. However, can the values in the widget be preserved during such an
update?
Thanks,
--
(b v raghav)
--
(b v raghav)

***@gmail.com
Loading...