At 02:10 PM 4/26/2002 -0400, Rocco Caputo wrote: >On Fri, Apr 26, 2002 at 01:05:13PM -0400, Stephen Adkins wrote: .... >[Sabre requests often take a long time.] .... >A general three-step pattern has emerged for handling blocking network >libraries in POE. > >1. Have the library send the request (blocking if necessary). >2. Wait asynchronously for the socket to become ready. >3. Receive the response (blocking if necessary). > >The pattern requires three conditions to be met: > >1. The request and response functions are or can be separate. >2. The library exposes a file handle or descriptor to be waited on. >3. The blocking send and receive functions don't take very long once > the file is ready to be worked with. > >In practice, conditions 1 and 2 are toss-ups, although sometimes they >can be worked around. Condition 3 is often true, though.
Hi, Thanks for the guidelines. They make perfect sense. In this case, the Sabre library fails condition 2, while meeting conditions 1 and 3. Stephen