MySQL Forums
Forum List  »  Source, Builds, Binaries

Asynchronous protocol or not?
Posted by: zhimin chen
Date: September 16, 2008 07:52PM

I don't quite understand the "Mysql Internals ClientServer Protocol" (http://forge.mysql.com/wiki/MySQL_Internals_ClientServer_Protocol#Command_Packet) well.

Suppose we have two following cases, I want to know which case is right.
1. request-response, request-response
In a certain connection, we can only send one request (I.E. "select * from users"), then wait for the response, then send another request.
(We can't send another request if the response for previous request was not ready)

2. request,request,request - response, response, response
In a certain connection, we can send multiple requests one by one, and the server will send back the responses one by one in the order of the requests.

Thanks

Options: ReplyQuote


Subject
Views
Written By
Posted
Asynchronous protocol or not?
3599
September 16, 2008 07:52PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.