Hi
the problem is that I use this scheme to test students’ code. Of course they are very… creative in their solutions, but that simply means that it is difficult to extract a proper test case. The code I posted is essentially what I use. I have a hunch that the problem may be with programs that “burn” stacks a lot. In the specific case, the students were asked to build a JSON parser; I see the problem on a longish file. The students’ parser starts and becomes insensitive to timeouts.
Go figure… (Which means that I will have to do deep debugging)
All the best
Marco