[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference lassie::ucx

Title:DEC TCP/IP Services for OpenVMS
Notice:Note 2-SSB Kits, 3-FT Kits, 4-Patch Info, 7-QAR System
Moderator:ucxaxp.ucx.lkg.dec.com::TIBBERT
Created:Thu Nov 17 1994
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:5568
Total number of notes:21492

5474.0. "shutdown(): should it complete pending calls?" by EDSCLU::JAYAKUMAR () Tue Apr 29 1997 12:15

Hi,

<Also cross posted ::PATHWORKS, for the DECnet Winsock2 implementation>

Can you pls, share with me as to what is the expected behaviour of shutdown()
on a stream UCX socket?

My understanding was, when shutdown(fd, SD_BOTH) is issued on a connected
socket (TCP), it not only prohibits any more send()s or recv()s on that socket 
but also completes any outstanding recv()s with an appropriate error code. 
But the documentation only says further sends and receives are disallowed, but 
doesn't say anything about a pending call. 

Should I expect (or not expect) an outstanding recv() to complete when 
shutdown() is called from another thread?

Thanks
-Jay
T.RTitleUserPersonal
Name
DateLines