fix infinite loop with malformed messages
add stub for conntest to nas server