osd-contiki/apps/webbrowser
Oliver Schmidt 1066bb1a0b Client requested close takes precedence over server initiated close.
When the client has already called webclient_close() it doesn't expect to have webclient_datahandler(NULL, 0) called just because the connection was closed by the server "at the same time". Rather it expects to always have webclient_closed() called.

Calling webclient_datahandler(NULL, 0) instead of webclient_closed() means that the web browser shows "Done" in the status line instead of "Stopped". So the user is mislead to think that he has already seen all of the page.

Note: webclient_close() is called by the client during newdata() so the already existing check for WEBCLIENT_STATE_CLOSE further above doesn't help.
2015-11-01 15:34:09 +01:00
..
html-strings Removed support for <FRAME> tag. 2015-05-25 16:19:30 +02:00
html-strings.c Removed support for <FRAME> tag. 2015-05-25 16:19:30 +02:00
html-strings.h Removed support for <FRAME> tag. 2015-05-25 16:19:30 +02:00
htmlparser.c Further improved parsing of <SCRIPT> tag. 2015-06-07 00:23:44 +02:00
htmlparser.h A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
http-strings Recognize HTTPS. 2015-06-05 16:26:20 +02:00
http-strings.c Recognize HTTPS. 2015-06-05 16:26:20 +02:00
http-strings.h Recognize HTTPS. 2015-06-05 16:26:20 +02:00
http-user-agent-string Bumped the version number from 2.6 to 3.x, which is to be used in the development branch 2013-12-12 17:33:18 +01:00
http-user-agent-string.c Bumped the version number from 2.6 to 3.x, which is to be used in the development branch 2013-12-12 17:33:18 +01:00
http-user-agent-string.h Bumped version number 2012-07-12 11:33:12 +02:00
Makefile.webbrowser Make lists of source files for each app available individually - i.e. for creation of dynamically loadable modules. 2007-04-05 19:50:43 +00:00
webclient.c Client requested close takes precedence over server initiated close. 2015-11-01 15:34:09 +01:00
webclient.h A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
www-dsc.c Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
www-dsc.h A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix 2013-11-24 20:20:11 +01:00
www.c Just some minor optimizations. 2015-11-01 15:18:29 +01:00
www.h Set WWW_CONF_MAX_URLLEN to maximum value by default. 2015-04-29 18:21:35 +02:00