Added more debug output.

This commit is contained in:
Markus Makela
2015-06-08 18:04:43 +03:00
parent 61ea0861ff
commit 1c36cfb285
4 changed files with 29 additions and 7 deletions

View File

@ -652,9 +652,16 @@ int gw_read_client_event(
protocol = DCB_PROTOCOL(dcb, MySQLProtocol);
CHK_PROTOCOL(protocol);
#ifdef SS_DEBUG
skygw_log_write(LD,"[gw_read_client_event] Protocol state: %s",
gw_mysql_protocol_state2string(protocol->protocol_auth_state));
#endif
if(protocol->protocol_auth_state == MYSQL_AUTH_SSL_HANDSHAKE_ONGOING ||
protocol->protocol_auth_state == MYSQL_AUTH_SSL_REQ)
{
switch(do_ssl_accept(protocol))
{
case 0:
@ -1943,6 +1950,10 @@ int do_ssl_accept(MySQLProtocol* protocol)
rval);
break;
}
#ifdef SS_DEBUG
skygw_log_write(LD,"[do_ssl_accept] Protocol state: %s",
gw_mysql_protocol_state2string(protocol->protocol_auth_state));
#endif
return rval;
}