You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently send on a TCPConnectionActor looks like:
funrefsend(data: ByteSeq) =>
ifself().state is OpenthentryPonyTCP.send(self().event, data, data.size())?
end
If the connection is closed, or there is otherwise an error, that is silently eaten. Ideally what is needed here is some sort of return that allows a caller to know if there was success or not. Then, you could write a behavior like:
besend(sender: SuccessCallbackHaver, data: ByteSeq) =>
if not send(data) then
sender.failure()
end
to indicate the lack of success.
The text was updated successfully, but these errors were encountered:
Currently
send
on aTCPConnectionActor
looks like:If the connection is closed, or there is otherwise an error, that is silently eaten. Ideally what is needed here is some sort of return that allows a caller to know if there was success or not. Then, you could write a behavior like:
to indicate the lack of success.
The text was updated successfully, but these errors were encountered: