Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
SHUTDOWN call z/OS Communications Server: IP CICS Sockets Guide SC27-3649-00 |
|||||||||||||||||||||||||||||||||||||||||||
One way to terminate a network connection is to issue the CLOSE call which attempts to complete all outstanding data transmission requests prior to breaking the connection. The SHUTDOWN call can be used to close one-way traffic while completing data transfer in the other direction. The HOW parameter determines the direction of traffic to shutdown. When the CLOSE call is used, the SETSOCKOPT OPTVAL LINGER parameter determines the amount of time the system waits before releasing the connection. For example, with a LINGER value of 30 seconds, system resources (including the IMS™ or CICS® transaction) remain in the system for up to 30 seconds after the CLOSE call is issued. In high volume, transaction-based systems like CICS and IMS, this can impact performance severely. If the SHUTDOWN call is issued, when the CLOSE call is received, the connection can be closed immediately, rather than waiting for the 30-second delay. If you issue SHUTDOWN for a socket that
currently has outstanding socket calls pending, see Table 1 to determine the effects of this operation
on the outstanding socket calls.
The following requirements apply to this call:
Figure 1 shows an example of SHUTDOWN call instructions. Figure 1. SHUTDOWN call instruction example
For equivalent PL/I and assembler language declarations, see Converting parameter descriptions. |
Copyright IBM Corporation 1990, 2014
|