Differences From Artifact [fa73320acf]:
- File src/OFHTTPClient.m — part of check-in [bceb7ed4c9] at 2019-03-08 00:35:48 on branch trunk — Use dot syntax (user: js, size: 27886) [annotate] [blame] [check-ins using]
To Artifact [e2bb72d5a2]:
- File
src/OFHTTPClient.m
— part of check-in
[eadd1a0c54]
at
2019-03-19 22:36:40
on branch trunk
— OFHTTPClient: Compare port using -[isEqual:]
-[OFURL port] used to be an integer, but was changed to being an
OFNumber, so needs -[isEqual:] now. (user: js, size: 27939) [annotate] [blame] [check-ins using]
| ︙ | ︙ | |||
628 629 630 631 632 633 634 | OFURL *URL = _request.URL; OFTCPSocket *sock; /* Can we reuse the last socket? */ if (_client->_socket != nil && !_client->_socket.atEndOfStream && [_client->_lastURL.scheme isEqual: URL.scheme] && [_client->_lastURL.host isEqual: URL.host] && | | > | 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 |
OFURL *URL = _request.URL;
OFTCPSocket *sock;
/* Can we reuse the last socket? */
if (_client->_socket != nil && !_client->_socket.atEndOfStream &&
[_client->_lastURL.scheme isEqual: URL.scheme] &&
[_client->_lastURL.host isEqual: URL.host] &&
(_client->_lastURL.port == URL.port ||
[_client->_lastURL.port isEqual: URL.port]) &&
(_client->_lastWasHEAD || _client->_lastResponse.atEndOfStream)) {
/*
* Set _socket to nil, so that in case of an error it won't be
* reused. If everything is successful, we set _socket again
* at the end.
*/
sock = [_client->_socket autorelease];
|
| ︙ | ︙ |