multiscale / muscle3

The third major version of the MUltiScale Coupling Library and Environment
Apache License 2.0
25 stars 13 forks source link

Improve error messages when peer component crashes #188

Closed maarten-ic closed 1 year ago

maarten-ic commented 1 year ago

When one instance in a simulation run crashes, often the other instances report errors like (Python):

libmuscle.mcp.tcp_util.SocketClosed: Socket closed while receiving

or (C++):

terminate called after throwing an instance of 'std::runtime_error'
  what():  Error receiving data on socket

These errors can be a red herring, leading users of libmuscle to think that the component with the socket error was misbehaving, while actually the root cause is in another component.

To change:

LourensVeen commented 1 year ago

See also #31