moved initial hello request from client to backend to immediate before first actual query
This commit is contained in:
parent
84c94b2c0e
commit
948e203a61
5 changed files with 36 additions and 11 deletions
|
|
@ -599,7 +599,11 @@ main(int argc, char **argv)
|
|||
|
||||
/* Go into event-loop unless -1 command-line */
|
||||
if (!once){
|
||||
/* send hello request from backend hello */
|
||||
/* Send hello request to backend to get session-id back
|
||||
* This is done once at the beginning of the session and then this is
|
||||
* used by the client, even though new TCP sessions are created for
|
||||
* each message sent to the backend.
|
||||
*/
|
||||
if (clicon_hello_req(h, &id) < 0)
|
||||
goto done;
|
||||
clicon_session_id_set(h, id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue