Log( "Start" )
srver.Initialize( "srvr" )
' srver.Port = 12612
srver.Port = 8888
srver.Start
StartMessageLoop
Log( "End" )
Check out the two step process suggested in this forum
https://superuser.com/questions/215351/how-do-i-kill-a-process-that-is-dead-but-listening
step 1. Find PID using command window => C:\Users\username>netstat -o -n -a | findstr 12612
step 2. Kill PID => C:\Users\username>taskkill /F /PID 3116 (the number of whatever PID you found)
If this doesn't work, go to above link and read more.
1) You could try using another browser. This way you can double check chrome's behavior. You could even use wget (Windows and/or Linux) and try to pull the page from the command line. I don't think wget caches anything.In fact, even if we kill the server and DON'T restart it, the original index.html file is displayed. I've tried clearing the Chrome cache, but to no avail. Chrome apparently thinks the server is still running , and maybe Chrome is right
1) You could try using another browser. This way you can double check chrome's behavior. You could even use wget (Windows and/or Linux) and try to pull the page from the command line. I don't think wget caches anything.
2) How are you hosting your server? Make sure there is not a proxy/load balancer in front of your server that keeps serving stale pages.
Are you refreshing the page in chrome after you edit the index file ?
If you edit the index.html you do not need to stop the server, when the page is refreshed the new page will be served to the browser.
So you are running the web browser on the same machine that is running the B4J application?localhost:12612 and localhost:8888
So you are running the web browser on the same machine that is running the B4J application?
This seems very unlikely, unless you are using a service worker (like with BANano with the .UseServiceWorker = true setting). In that case the behavior you describe can happen as such a webapp/website can run without a server.Even WITHOUT the server running, after rebooting, localhost:12612 and localhost:8888 returns the same index file with the same title as it did before. Since the server isn't active, it shouldn't be returning anything.
This seems very unlikely, unless you are using a service worker (like with BANano with the .UseServiceWorker = true setting). In that case the behavior you describe can happen as such a webapp/website can run without a server.
In chrome press F12 and go the the application tab: check if any service worker is active on one of the ports you use. Also, check the network tab when you press ctrl-F5 to see where it gets its files from.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?