Is a negative value valid for resultCount in a Search Response? If so, what would it mean? What is the proper client behavior when a negative value is received?
A negative value for resultCount in a Search Response is invalid and constitutes a protocol violation. A client who receives a negative value of resultCount may issue a Close Request with Close-reason 'protocol error'.