mirror of https://github.com/mkerrisk/man-pages
Updated discussion of SO_BSDCOMPAT.
This commit is contained in:
parent
ed07f09aeb
commit
9ae132041b
|
@ -90,16 +90,16 @@ which don't pass any errors unless the socket is connected.
|
|||
Linux's behaviour is mandated by
|
||||
.BR RFC\ 1122 .
|
||||
|
||||
For compatibility with legacy code it is possible to set the
|
||||
For compatibility with legacy code in Linux 2.0 and 2.2
|
||||
it was possible to set the
|
||||
.B SO_BSDCOMPAT
|
||||
SOL_SOCKET option to receive remote errors only when the socket has been
|
||||
connected (except for
|
||||
.B EPROTO
|
||||
and
|
||||
.BR EMSGSIZE ).
|
||||
It is better to fix the
|
||||
code to handle errors properly than to enable this option.
|
||||
Locally generated errors are always passed.
|
||||
Support for this socket option was removed in Linux 2.4.
|
||||
|
||||
When the
|
||||
.B IP_RECVERR
|
||||
|
|
Loading…
Reference in New Issue