How to keep a continuous web access while using require("http").createServer #7517
Replies: 1 comment
-
Posted at 2020-09-23 by Robin Tue 2020.09.22 Hi, @user109783 it sounds like this is what you are after: Other ideas: *Edit*
After a bit of digging, this page seems to be the origin of the snippet above: > http://www.espruino.com/Internet As page requests are 'stateless' I now believe the initial post is after attempting to keep the connection alive indefinetly. Good overview,
Is this the task that is being attempted? or Is a very large char count page request being made and not all of the page content is returned? Posted at 2020-09-26 by user109783 The page I load is very simple and little cotent, I just press the F5 for refreshing the website, but somehow the server reject for connecting. And I invoked WIZnet.getStatus(), it was still working.
But when I visit website by http://ip , the browser reject like this: ERR_CONNECTION_REFUSED Posted at 2020-09-26 by user109783 When I first time visited the device like this, http://192.168.1.111 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-23 by user109783
The code like this, when the borad work, it's ok for visiting the pages which the server supply at the very first time. But when I jump for the other websites and visit back via return history of browser, the server stop. I can't visit the server website again. I have to invoke load() for restart then I access the server again.
How to Keep web server working for long time?
Beta Was this translation helpful? Give feedback.
All reactions