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,