Changeset 6391
- Timestamp:
- Jul 23, 2008, 7:29:21 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/third-party/shttpd/shttpd.c
r6349 r6391 899 899 900 900 /* Read from underlying channel */ 901 n = stream->io_class->read(stream, io_space(&stream->io), len); 901 if( stream->io_class ) 902 n = stream->io_class->read(stream, io_space(&stream->io), len); 903 else 904 n = 0; 902 905 903 906 if (n > 0) … … 937 940 938 941 /* TODO: should be assert on CAN_WRITE flag */ 939 n = to->io_class->write(to, io_data(&from->io), len); 942 if( to->io_class ) 943 n = to->io_class->write(to, io_data(&from->io), len); 944 else 945 n = 0; 946 940 947 to->conn->expire_time = current_time + EXPIRE_TIME; 941 948 DBG(("write_stream (%d %s): written %d/%d bytes (errno %d)",
Note: See TracChangeset
for help on using the changeset viewer.