Sam Leffler
21367f630d
Change error codes returned by protocol operations when an inpcb is
...
marked INP_DROPPED or INP_TIMEWAIT:
o return ECONNRESET instead of EINVAL for close, disconnect, shutdown,
rcvd, rcvoob, and send operations
o return ECONNABORTED instead of EINVAL for accept
These changes should reduce confusion in applications since EINVAL is
normally interpreted to mean an invalid file descriptor. This change
does not conflict with POSIX or other standards I checked. The return
of EINVAL has always been possible but rare; it's become more common
with recent changes to the socket/inpcb handling and with finer-grained
locking and preemption.
Note: there are other instances of EINVAL for this state that were
left unchanged; they should be reviewed.
Reviewed by: rwatson, andre, ru
MFC after: 1 month
2006-11-22 17:16:54 +00:00
..
2006-11-07 21:06:48 +00:00
2005-10-21 16:23:01 +00:00
2005-08-26 15:27:18 +00:00
2006-10-22 11:52:19 +00:00
2006-10-22 11:52:19 +00:00
2006-08-04 21:27:40 +00:00
2006-11-06 13:42:10 +00:00
2006-07-18 22:34:27 +00:00
2006-11-03 15:23:16 +00:00
2006-07-05 23:37:21 +00:00
2006-09-28 10:04:07 +00:00
2006-11-06 13:42:10 +00:00
2006-05-14 14:22:49 +00:00
2005-07-20 10:30:52 +00:00
2006-11-06 13:42:10 +00:00
2006-03-21 14:29:48 +00:00
2006-11-06 13:42:10 +00:00
2006-10-29 12:09:24 +00:00
2006-02-14 06:36:39 +00:00
2006-08-04 21:27:40 +00:00
2006-08-17 00:37:03 +00:00
2006-11-13 19:07:32 +00:00
2006-10-21 00:16:31 +00:00
2006-08-18 22:36:05 +00:00
2006-06-02 19:59:33 +00:00
2006-01-21 10:44:34 +00:00
2006-10-22 11:52:19 +00:00
2005-05-04 13:09:19 +00:00
2006-10-22 11:52:19 +00:00
2006-07-06 13:25:01 +00:00
2006-02-01 13:55:03 +00:00
2006-11-06 13:42:10 +00:00
2006-09-29 16:16:41 +00:00
2006-10-22 11:52:19 +00:00
2005-11-19 14:01:32 +00:00
2006-11-06 13:42:10 +00:00
2006-05-14 14:22:49 +00:00
2005-08-10 07:10:02 +00:00
2006-11-06 13:42:10 +00:00
2006-11-08 00:21:13 +00:00
2006-11-03 15:23:16 +00:00
2006-11-03 15:23:16 +00:00
2006-11-03 15:23:16 +00:00
2006-11-05 13:25:18 +00:00
2006-11-03 15:23:16 +00:00
2006-11-11 22:44:12 +00:00
2006-11-05 14:36:59 +00:00
2006-11-03 15:23:16 +00:00
2006-11-03 15:23:16 +00:00
2006-11-11 15:59:01 +00:00
2006-11-03 15:23:16 +00:00
2006-11-11 22:44:12 +00:00
2006-11-03 15:23:16 +00:00
2006-11-03 17:21:53 +00:00
2006-11-03 17:21:53 +00:00
2006-11-03 17:21:53 +00:00
2006-11-11 22:44:12 +00:00
2006-11-03 15:23:16 +00:00
2006-11-08 00:21:13 +00:00
2006-11-03 15:23:16 +00:00
2006-11-03 15:23:16 +00:00
2006-11-03 15:23:16 +00:00
2006-11-08 00:21:13 +00:00
2006-11-04 08:19:01 +00:00
2006-11-03 15:23:16 +00:00
2006-11-11 15:59:01 +00:00
2006-11-09 21:01:07 +00:00
2006-11-03 15:23:16 +00:00
2006-11-03 15:23:16 +00:00
2006-11-11 22:44:12 +00:00
2006-11-11 22:44:12 +00:00
2006-10-22 11:52:19 +00:00
2006-10-22 11:52:19 +00:00
2006-10-22 11:52:19 +00:00
2006-04-06 17:21:16 +00:00
2006-06-18 14:24:12 +00:00
2006-11-06 13:42:10 +00:00
2006-10-22 11:52:19 +00:00
2006-09-07 13:06:00 +00:00
2006-09-25 07:22:39 +00:00
2006-11-06 13:42:10 +00:00
2006-11-22 17:16:54 +00:00
2006-09-13 13:08:27 +00:00
2006-02-18 16:50:08 +00:00
2006-11-06 13:42:10 +00:00