Ignore:
Timestamp:
2010-08-18T02:04:52+02:00 (6 years ago)
Author:
jow
Message:

[package] uhttpd:

  • fix parsing of interpreter entries in the config file, fixes serving of static files as .cgi with X-Wrt
  • better cope with connection aborts, especially during header transfer
  • fix return value checking of TLS reads and writes, solves some blocking issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/uhttpd/src/uhttpd-tls.c

    r21762 r22692  
    7171int uh_tls_client_recv(struct client *c, void *buf, int len) 
    7272{ 
    73         return SSL_read(c->tls, buf, len); 
     73        int rv = SSL_read(c->tls, buf, len); 
     74        return (rv > 0) ? rv : -1; 
    7475} 
    7576 
    7677int uh_tls_client_send(struct client *c, void *buf, int len) 
    7778{ 
    78         return SSL_write(c->tls, buf, len); 
     79        int rv = SSL_write(c->tls, buf, len); 
     80        return (rv > 0) ? rv : -1; 
    7981} 
    8082 
Note: See TracChangeset for help on using the changeset viewer.