Consultor Eletrônico



Kbase P48870: Invalid socket object used in READ method
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   2/3/2009
Status: Verified

SYMPTOM(s):

Invalid socket object used in READ method

FACT(s) (Environment):

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

CAUSE:

The READ-RESPONSE procedure is not checking whether the socket is still connected before attempting to read from the socket. It is possible to get a READ-RESPONSE event generated that simply notifies you that the socket has been disconnected so you must check to see if the socket is still connected before trying to manipulate it.

FIX:

To check in the READ-RESPONSE procedure whether the socket is still connected, use code similar to the following:

IF SELF:CONNECTED() = FALSE THEN
/* Socket Has Been Disconnected, Handle It And Exit */
END.