You might, if you have not done so, join the TCPIP List for a more focused 
forum.

To join

http://www2.marist.edu/htbin/wlvindex?IBMTCP-L

go to the bottom of the webpage to join.

Lizette


> -----Original Message-----
> From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On
> Behalf Of Donald Likens
> Sent: Tuesday, August 19, 2014 2:02 PM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: How to cleanly shutdown a socket server?
> 
> I have been struggling with this for a while... Cancel always works but I 
> don't think
> that is clean. I just looked in the IP Socket Interface guide hoping it would 
> help but
> the design noted there has a task receiving data forever. I do not have a 
> problem if
> the socket is busy. I can always set a switch and terminate. My problem is 
> when the
> socket is idle. It is waiting for input and does not know it is to shutdown.
> 
> My most current idea is to setup a ESTAE to ignore SA03 abends and detach the
> task. I have not tested this yet but it seems unclean to me (even if 
> externally it will
> look clean). I have also thought about setting a timeout value but I am 
> concerned
> about using this. If the socket times out, do I have to close and reopen the 
> socket?
> How long do I wait before I timeout? Does this cause a lot of overhead?
> 
> Have you created a socket server? Did you have a clean way of shutting it 
> down?
> Please explain how. Thanks
> 
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions, send email to
> lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to