Changeset 658 for trunk/sx/ssl.c

Show
Ignore:
Timestamp:
09/08/08 23:12:09 (5 months ago)
Author:
smoku
Message:

Fixed sending stream errors on wrapper errors

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/sx/ssl.c

    r657 r658  
    252252                _sx_event(s, event_ERROR, (void *) &sxe); 
    253253 
    254                 _sx_error(s, stream_err_INTERNAL_SERVER_ERROR, errstring); 
    255                 _sx_close(s); 
     254                sx_error(s, stream_err_INTERNAL_SERVER_ERROR, errstring); 
     255                sx_close(s); 
     256 
     257                /* !!! drop queue */ 
    256258 
    257259                return -1; 
     
    331333                _sx_event(s, event_ERROR, (void *) &sxe); 
    332334 
    333                 _sx_error(s, stream_err_INTERNAL_SERVER_ERROR, errstring); 
    334                 _sx_close(s); 
     335                sx_error(s, stream_err_INTERNAL_SERVER_ERROR, errstring); 
     336                sx_close(s); 
    335337 
    336338                /* !!! drop queue */ 
     
    464466                _sx_event(s, event_ERROR, (void *) &sxe); 
    465467 
    466                 _sx_error(s, stream_err_INTERNAL_SERVER_ERROR, errstring); 
    467                 _sx_close(s); 
     468                sx_error(s, stream_err_INTERNAL_SERVER_ERROR, errstring); 
     469                sx_close(s); 
    468470 
    469471                /* !!! drop queue */