Hi, I was wondering if it exists some way to tell the Arduino "If this method takes too long, break it and go further, and tell me you don't have the supposed results"
You can write a function that does something until it succeeds (by whatever measure you define success) OR until a certain time has elapsed.
To be more specific I'm messing with the ethernet shield, and I want my little buddy to connect to a different server if the first one takes too long to answer (or if its answer is too long...)
In this case, you just have to wait for the existing function to time out. It will eventually, but it might take longer than you want.
If you knew how to change that time limit, you wouldn't need to be asking this question. As it is not a trivial change, and the change risks breaking other stuff, you should simply have the Arduino connect to a more reliable server.