-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[iCalendar] Fix httpclient getting stuck with broken requests #11866
Conversation
Fixes openhab#9827 Signed-off-by: Stefan Triller <[email protected]>
26ab7da
to
cdbc178
Compare
is EDIT: |
@daMihe Thanks for having a look at this PR. Please have a look at what the implementation of |
I have to say, i was up to now not able to understand where the queue is filling up (just a guess: However, the synchronous |
As I mentioned in my #9827 (comment)
That is the evidence of that queue filling up for me. The mentioned
And yes, all I am fixing is that the queue doesn't get filled up, so whenever such a Let me know if you still have questions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
....binding.icalendar/src/main/java/org/openhab/binding/icalendar/internal/handler/PullJob.java
Outdated
Show resolved
Hide resolved
I am very curious to know if this is properly managed by other bindings.
They should be checked. But this is not the good search key, other bindings are probably using send asynchronously with other listener class. Are you really sure that calling abort is necessary in case of exceptions ? |
Signed-off-by: Stefan Triller <[email protected]>
From what I saw here: it occurred due to a I integrated your changes @lolodomo, please have a look again. Regarding the other bindings: I agree that its tricky to search for this particular case but IMHO we should take care of these error situations because in the end the shared |
I believe we should have a clear vision of when calling abort() is necessary before starting updating many bindings. |
If you want to do that, fine for me. Regarding the icalendar binding and this PR I think #9827 (comment) clearly shows that it is necessary. Do you have any other comments about the code? If not, I would appreciate if this gets merged so I can fix my openHAB installation. A not working calendar, or well one that stops working after a server hicup, is certainly nothing I would like to rely on for longer since the reason for it was found and is fixed in this PR. Otherwise, please comment what you still would like to have changed. Thanks. |
As a temporary and fast fix, you can simply build the jar and install it in your addons folder in replacement of the embedded one. If another maintainer has the correct knowledge of how it should be handled properly, it could be fixed very quickly. I do not know myself and I will have to study the stuff more in details. |
I don't. I've so far never seen nor used the |
Me neither. But I do not see a show-stopper here. We have a lot of time to test it until the next release is coming and thus I vote for a quick merge too. |
In this case, let's go for a merge, even if we are not fully sure now that it is the good implementation. |
Just for the record: calling |
Did this happen on OH3.2 or OH3.1? It looks similar to jetty/jetty.project#6323 but the Jetty in OH3.2 already contains the fixed version, wile OH3.1 contained an older one. |
For the record: This issue and my logs are taken with |
…b#11866) * [iCalendar] Fix httpclient getting stuck with broken requests Fixes openhab#9827 Signed-off-by: Stefan Triller <[email protected]> Signed-off-by: Michael Schmidt <[email protected]>
…b#11866) * [iCalendar] Fix httpclient getting stuck with broken requests Fixes openhab#9827 Signed-off-by: Stefan Triller <[email protected]>
…b#11866) * [iCalendar] Fix httpclient getting stuck with broken requests Fixes openhab#9827 Signed-off-by: Stefan Triller <[email protected]>
This pull request has been mentioned on openHAB Community. There might be relevant details there: |
…b#11866) * [iCalendar] Fix httpclient getting stuck with broken requests Fixes openhab#9827 Signed-off-by: Stefan Triller <[email protected]> Signed-off-by: Nick Waterton <[email protected]>
…b#11866) * [iCalendar] Fix httpclient getting stuck with broken requests Fixes openhab#9827 Signed-off-by: Stefan Triller <[email protected]>
…b#11866) * [iCalendar] Fix httpclient getting stuck with broken requests Fixes openhab#9827 Signed-off-by: Stefan Triller <[email protected]> Signed-off-by: Andras Uhrin <[email protected]>
Fixes #9827
Signed-off-by: Stefan Triller [email protected]