Reputation: 7768
I have a call to a function on my webpage. This function does some calculations and it might take couple of hours for it to complete. While function is working, the page is showing nothing and just hangs in 'loading' phase. I noticed that if I close the browser, the function is stil working. How can I end the process?
String query ="some query";
Scanner.Program eb = new Scanner.Program();
eb.getEbay_com_API(query);
Upvotes: 1
Views: 93
Reputation: 33738
Its the web server doing this work, not the browser. Restart IIS, or execute the function on a thread so you can terminate the thread later (yuk), or pass the processing off to an external program (IIS is NOT meant to perform long-running tasks).
Upvotes: 2