Consultor Eletrônico



Kbase P1302: What Is the SO-LINGER option in 4GL Sockets
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

GOAL:

What Is the SO-LINGER option in 4GL Sockets

FACT(s) (Environment):

Progress 9.x
OpenEdge 10.x

FIX:

The SO-LINGER is actually an option in the TCP/IP stack, therefore what follows is a description based on the documentation for various operating systems, and may not apply to your specific TCP/IP implementation.

Normally, when the DISCONNECT() method is invoked, the flow returns immediately to the 4GL program without waiting for the remaining data to be flushed to the other end of the connection.

SO-LINGER enables "lingering", which means that DISCONNECT() will not return to the 4GL program before either all the remaining socket data has been flushed or the "time to linger" (usually 30 seconds) has expired.