Consultor Eletrônico



Kbase P12415: How do I trap for error 9407 when using sockets and the server goes away?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/2/2008
Status: Verified

GOAL:

How do I trap for error 9407 when using sockets and the server goes away?

FACT(s) (Environment):

All Supported Operating Systems
Progress 9.x
OpenEdge 10.x

FIX:

By accessing a socket (i.e. reading from or writing to the socket), simply check whether the socket is still connected. This can be done using the following code:
IF SELF:CONNECTED() = FALSE THEN
DO:
... Error handling code goes here
END.