add interruptible socket test code