Unify error handling to have IpcError and TryRecvError be the main errortypes.#407
Unify error handling to have IpcError and TryRecvError be the main errortypes.#407sagudev merged 6 commits intoservo:mainfrom
Conversation
a9f4457 to
3f0752a
Compare
fae67df to
4ef7ae4
Compare
|
Ok the async errors should be fixed now. Please rerun the CI to see if there is anything else missing. |
512913c to
d606cd9
Compare
d606cd9 to
9d20d5e
Compare
|
What's the status here, given that you closed #408? If we do not plan to change serialization library I wish to avoid landing any breaking changes at least in short term. |
|
I still want to change serialization libraries but adding the benchmark comes first. I noticed that bitcode did not provide any improvements for the performance but postcard seems to be good. |
9d20d5e to
44bd4ff
Compare
|
@sagudev Would you be opening to revisiting this (breaking change) now? I think it would make sense to remove bincode from the public API, especially now that it is essentially unmaintained. |
I think bincode is still maintained.
I mean I would still like to avoid breaking change (we have nothing breaking on main, I think) for now until we have some real changes, but I am not against to change per se. Alternatively we can just land this and keep the main unreleased and patch 0.20 on another branch, but we have no such process in place. |
As of yesterday it is not. I don't really want to get into the details of the drama, but given that it is unmaintained, comments of the author on the reddit thread, and lastly someone claiming to be peripharly involved saying there are other redflags for the project, I think we should try to migrate away (not urgently / this year, but soonish, it's definitly easier than auditing the code).
|
|
IIRC I read somewhere that he would still respond to CVEs. Anyway I think webrender also uses it internally, so we will see what mozilla will do about that. Given the circumstance I think this PR is imminent anyway. |
6bfcfb3 to
09ce2e9
Compare
Head branch was pushed to by a user without write access
39cfc9b to
5876dfc
Compare
types. These types will give the Bincode error, Io errors (which are converted from platform errors) and Disconnect. Additionally we now use the thiserror crate which removes some of the code. Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
Signed-off-by: Narfinger <Narfinger@users.noreply.github.com>
sagudev
left a comment
There was a problem hiding this comment.
Whoops, I was sure this already landed.
This is for symmetry with ipc-channel. See: servo/ipc-channel#407
These types will give the Bincode error, Io errors (which are converted
from platform errors) and Disconnect.
Additionally we now use the thiserror crate which removes some of the
code.
This is a breaking change but because there are others comming we do not increase the version yet.