Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop serving client that is already gone #598

Merged

Conversation

DE-cr
Copy link
Contributor

@DE-cr DE-cr commented Nov 10, 2023

...at least for potentially long lasting actions, e.g. /D or /K24.
This avoids unnecessarily blocking bsb-lan for other tasks (including new client requests).

Succesfully tested on ESP32 with wifi connection, using the url commands given above.
I consider this ready for merging.

...at least for potentially long lasting actions, e.g. /D or /K24.
This avoids unnecessarily blocking bsb-lan for other tasks (including new client requests).
not perfect, but at least loops are quit, thus definitely shortening unnecessary bsb-lan blocking
@DE-cr
Copy link
Contributor Author

DE-cr commented Nov 10, 2023

P.s. now also addressing /QD handling. (Tested on my system.)

@fredlcore
Copy link
Owner

Great idea, thanks! Does this also mean that you can abort let's say a long query of parameters (such as /0-9999) by hitting the "Stop" button on the browser and start a new query right after? Because that has often confused users who were wondering why BSB-LAN was still not responding for minutes until the query in the background was completed.

@DE-cr
Copy link
Contributor Author

DE-cr commented Nov 10, 2023

Yes, tested right now. :)

@DE-cr
Copy link
Contributor Author

DE-cr commented Nov 10, 2023

Btw, I've done my testing by calling the url commands that usually take a long time, then immediately going back to the previous page in the browser (alt + left), which cancels the client connection and creates a new one.

@fredlcore fredlcore merged commit 10fa193 into fredlcore:master Nov 10, 2023
2 checks passed
@fredlcore
Copy link
Owner

Great, that's really helpful!

@DE-cr DE-cr deleted the stop-serving-client-that-is-already-gone branch November 10, 2023 08:41
DE-cr referenced this pull request in DE-cr/BSB-LPB-LAN Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants