Ethernet shield V3 + Mega 2560 HTTP server freezes randomly

Maybe I've been unclear about what I am doing.
I realize that HTTP server would be the incorrect term for what I am doing, (sorry it was a long day when I posted this).

My computer hosts a labview environment where I send packets to the arduino to control the computer.
I send a complete packet over ethernet to the arduino.
My arduino acts as a server that my computer connects to.
I basically want to send a short message from my computer to the arduino, have it read that message, parse it, and run the code.

The packet is formatted as such
Header - length - payload - checksum