• unknown's avatar
    Bug#28812 rpl_ssl fails due to assert in extra/yassl/src/socket_wrapper.cpp:117 · 9c3a03a2
    unknown authored
     - Merge sslaccept and sslconnect.
     - Atomically "reset" vio to VIO_TYPE_SSL when the SSL connection has
       succeeded, this avoids having to revert anything and thus protects
       against "close_active_vio" in the middle.
     - Add some variance to the testcase
    
    
    mysql-test/t/rpl_ssl.test:
      Add some variance by running two selects before stopping the slave
      Check that number of records in t1 are equal on master and slave
    vio/viossl.c:
      Rewrite sslconnect and sslaccept to automically "reset" the vio
      to VIO_TYPE_SSL. Also use the fd from 'SSL_get_fd' to avoid
      setting vio->sd to -1, that previously occured when "close_active_vio"
      was called during connect/accept.
      
      Merge the two function since they were exactly the same except for one line.
      
      Update the DBUG printouts to be generic(i.e use peer instead of client/server).
    9c3a03a2
rpl_ssl.test 2.06 KB