Differences From Artifact [b9d140020a]:
- File
src/OFHTTPServer.m
— part of check-in
[09a0d12bae]
at
2016-06-05 21:17:57
on branch trunk
— Always cast to unsigned char for to{upper,lower}()
This is required as passing something signed to it is an error on
NetBSD, but passing anything else than a char is undefined on Linux. (user: js, size: 16471) [annotate] [blame] [check-ins using]
To Artifact [28126036a1]:
- File
src/OFHTTPServer.m
— part of check-in
[1de551cb5f]
at
2016-06-07 22:56:28
on branch trunk
— Add support for reusing OFStreams after close
Right now, this is only useful for OFTCPSocket, as this is the only
class so far not establishing the stream in the init method. However,
this adds the general infrastructure to allow reuse to all subclasses of
OFStream. (user: js, size: 16488) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
301 302 303 304 305 306 307 308 309 310 311 312 313 314 | didReceiveExceptionForResponse: self request: _request exception: e]; } [_socket release]; _socket = nil; } - (int)fileDescriptorForWriting { if (_socket == nil) return -1; | > > | 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 | didReceiveExceptionForResponse: self request: _request exception: e]; } [_socket release]; _socket = nil; [super close]; } - (int)fileDescriptorForWriting { if (_socket == nil) return -1; |
︙ | ︙ |