Check-in Number:
|
2688 | |
Date: |
2002-Oct-30 10:21:52 (local)
2002-Oct-30 09:21:52 (UTC) |
User: | rse |
Branch: | |
Comment: |
flush write buffer on write-side shutdown |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/sa/sa.c 1.63 -> 1.64
--- sa.c 2002/10/30 08:42:16 1.63
+++ sa.c 2002/10/30 09:21:52 1.64
@@ -2064,6 +2064,10 @@
else
return SA_RC(SA_ERR_ARG);
+ /* flush write buffers */
+ if ((how & SHUT_WR) || (how & SHUT_RDWR))
+ sa_flush(sa);
+
/* perform shutdown operation on underlying socket */
if (shutdown(sa->fdSocket, how) == -1)
return SA_RC(SA_ERR_SYS);
|
|