spell icon indicating copy to clipboard operation
spell copied to clipboard

RawSocket: add meaningful handshake error codes

Open danmarcab opened this issue 10 years ago • 0 comments

The router returns integer error codes when the handshake is not successful

0: illegal (must not be used)
1: serializer unsupported
2: maximum message length unacceptable
3: use of reserved bits (unsupported feature)
4: maximum connection count reached
#5 - 15: reserved for future errors

At the moment we return {:error, error_code}. We should return a better error message

danmarcab avatar Jun 04 '15 17:06 danmarcab