Requests should be processed in order for each actor
Categories
(DevTools :: Debugger, task, P3)
Tracking
(Not tracked)
People
(Reporter: jimb, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
Comment 1•11 years ago
|
||
Comment 2•11 years ago
|
||
Reporter | ||
Comment 3•11 years ago
|
||
Reporter | ||
Comment 4•11 years ago
|
||
Reporter | ||
Comment 5•11 years ago
|
||
Updated•11 years ago
|
Comment 6•10 years ago
|
||
Updated•10 years ago
|
Updated•10 years ago
|
Reporter | ||
Comment 7•10 years ago
|
||
Updated•7 years ago
|
Comment 8•6 years ago
|
||
Yulia is this bug still relevant?
Comment 9•6 years ago
•
|
||
uff that is some old code!
tl;dr i think this is no longer relevant for the following reason, or perhaps -- we might want to open a new issue for what is currently problematic:
We now use manage the requests first-in first-out: https://searchfox.org/mozilla-central/rev/662de518b1686c4769320d6b8825ce4864c4eda0/devtools/shared/protocol.js#1382-1387,1429-1434
The code around the server has not changed fundamentally, but we do have management of sending multiple requests to the server, and then handling them one by one.
The longer bit:
As to the question of how often this is causing problems. since the underlying issue has been fixed -- there must have been a large enough issue for it to be fixed.
That said, I don't think that what we are doing is enough. In most cases this works perfectly, except with -- naturally -- the thread client. which i have been spending quite some time converting to protocol js. The reason it is causing problems there is that the thread client is not written in a way that respects the protocol.js expectations. Rather than sending a response consistently, it instead emits for example, an event and a response, or just an event. This is a pre-existing issue, as seen here:
it was managed because we did a lot of custom work for the thread client: https://searchfox.org/mozilla-central/rev/662de518b1686c4769320d6b8825ce4864c4eda0/devtools/shared/client/debugger-client.js#620-638
This won't be an issue once I finish the work on the thread client, but it alerted me to the fact that some other fronts may be only working by accident, as we do not match requests by type. This is, as i understand it, the current open issue. There are two parts to this -- one is that fifo is easier to read, and it pushes us to be careful with our replies. The issue is that we sometimes end up filling the wrong request.
So, long story short -- can be closed, but we have an issue with the solution, and the previous implementation.
Comment 10•6 years ago
•
|
||
:jimb correct me if i am wrong here or if i misunderstood
the changes i mentioned were done in this bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1128027
Reporter | ||
Comment 11•5 years ago
|
||
Things have evolved so much since I filed this bug, closing this seems fine.
Description
•