Arduino Mega + Ethernet shield block in 4 hour


I put the ethernet shield over a arduino mega 2560 and run a simple sketch that read an RSS on internet and turn on or off a led.

After some hours it stops working and I have to reset arduino mega.

Any suggestion?


I found an error on the code, there's a without checking client.available().

I am going to fix it.