Ticket #59: jabberd2_ssl_handshake.patch

File jabberd2_ssl_handshake.patch, 0.6 KB (added by smoku, 20 months ago)

Patch by Klara Mall <klara.mall@…>

  • jabberd2-2.

    diff -ur jabberd2-2.0s11/sx/io.c jabberd2-2.0s11_new/sx/io.c
    old new  
    294294 
    295295    ret = _sx_get_pending_write(s); 
    296296    if (ret < 0) { 
    297     /* fatal error */ 
    298     /* !!! shut down */ 
    299     return 0; 
     297        /* fatal error */ 
     298        _sx_debug(ZONE, "fatal error after attempt to write on fd %d", s->tag); 
     299        /* permanent error so inform the app it can kill us */ 
     300        sx_kill(s); 
     301        return 0; 
    300302    } 
    301303 
    302304    /* if there's nothing to write, then we're done */