ipc-channel icon indicating copy to clipboard operation
ipc-channel copied to clipboard

Responding to Serialization Errors

Open mitsuhiko opened this issue 4 years ago • 0 comments

Due to https://github.com/servo/bincode/issues/245, https://github.com/servo/bincode/issues/167 and a few others it's not uncommon that one can end up in a situation where objects fail to serialize.

It would be nice to be able to be able to respond to these errors in a way that lets you still send something into the channel so that the receiver can deal with the errors.

I tried using the channel a second time after send() which seems to work because the bincode serialization fails internally when filling the buffer, before actually sending but I believe something corrupts internally which seem to cause errors like this: Io(Custom { kind: NotFound, error: "Bogus destination port." })

mitsuhiko avatar Feb 11 '20 14:02 mitsuhiko