Consultor Eletrônico



Kbase P5837: READ-RESPONSE trigger fires when 0 bytes are available
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   31/10/2008
Status: Verified

SYMPTOM(s):

READ-RESPONSE trigger fires when 0 bytes are available

GET-BYTES-AVAILABLE returns 0

FACT(s) (Environment):

The CONNECTED() method returns TRUE
Both conditions occur within a READ-RESPONSE procedure
OpenEdge 10.0x
Windows

CAUSE:

Bug# OE00080214

CAUSE:

The 4GL engine was not properly checking to see if there were bytes to be read for the socket

FIX:

Upgrade to Progress 9.1D01 or later

If the upgrade is not possible, the following workaround is available:

Loop inside READ-RESPONSE procedure waiting for either GET-BYTES-AVAILABLE to return non-zero or for socket to be disconnected. This may not always work, depending on how the sockets are being used. In other words, one of these conditions may eventually happen, or may never happen or may sometimes happen depending on the socket traffic.