state-threads
[Top] [All Lists]

advice on interrupt handling please

To: state-threads@xxxxxxxxxxx
Subject: advice on interrupt handling please
From: Gregory Nicholls <gnicholls@xxxxxxxxxx>
Date: Fri, 02 Feb 2001 15:00:13 -0500
Sender: owner-state-threads@xxxxxxxxxxx
 Hiya,
    I'm putting together an SSL server using state-threads. For reasons
I won't go into here I need to be able to interrupt the threads using
st_interrupt(). My problem is that the interrupt could be delivered to
my SSL code at almost anytime, including during an SSL negotiation. I'd
like to be able to 'defer' the receipt of the interrupt while I'm in the
middle of a series of 'must complete' data transfers.
    I can't readily see a way of doing this with the current stlib so
I'm thinking of adding suspend/resume logic so I can defer the interrupt
until I'm able to handle it.
    My question is, has anyone else run into this issue and if so, how
did you deal with it ??
        Thanks for any clues,
            Greg.


<Prev in Thread] Current Thread [Next in Thread>