Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-1336

[Proton-c 0.14.0][Visual Studio 2013] Failing ssl unit test only in Debug mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.14.0
    • proton-0.16.0
    • proton-c

    Description

      check full details here: http://qpid.2158936.n2.nabble.com/Proton-c-0-14-0-Visual-Studio-2013-Failing-ssl-unit-test-only-in-Debug-mode-td7652076.html

      Suggested patch by Cliff is tested and working

      --- proton/proton-c/src/windows/io.c    2016-08-16 06:02:21 -0700 
      +++ new/proton-c/src/windows/io.c    2016-10-19 16:19:21 -0700 
      @@ -90,8 +90,11 @@ 
       void pn_io_finalize(void *obj) 
       { 
         pn_io_t *io = (pn_io_t *) obj; 
      -  pn_error_free(io->error); 
      +  pn_selector_t *sel = io->iocp->selector; 
         pn_free(io->iocp); 
      +  if (sel) 
      +    pn_decref(sel); 
      +  pn_error_free(io->error); 
         WSACleanup(); 
       } 
      
      @@ -366,8 +369,10 @@ 
      
       pn_selector_t *pn_io_selector(pn_io_t *io) 
       { 
      -  if (io->iocp->selector == NULL) 
      +  if (io->iocp->selector == NULL) { 
           io->iocp->selector = pni_selector_create(io->iocp); 
      +    pn_incref(io->iocp->selector); 
      +  } 
         return io->iocp->selector; 
       } 
      

      Attachments

        Issue Links

          Activity

            People

              cliffjansen Clifford Jansen
              adelboutros@live.com Adel Boutros
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: