diff --git a/CHANGELOG.md b/CHANGELOG.md index 2d56f81..4fc7774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,24 @@ # Changelog +## 1.2.0 (2017-08-30) + +* Feature: Use socket error codes for connection rejections + (#17 by @clue) + + ```php + $promise = $proxy->connect('imap.example.com:143'); + $promise->then(null, function (Exeption $e) { + if ($e->getCode() === SOCKET_EACCES) { + echo 'Failed to authenticate with proxy!'; + } + throw $e; + }); + ``` + +* Improve test suite by locking Travis distro so new defaults will not break the build and + optionally exclude tests that rely on working internet connection + (#15 and #16 by @clue) + ## 1.1.0 (2017-06-11) * Feature: Support proxy authentication if proxy URL contains username/password diff --git a/README.md b/README.md index 20f8a5f..05db113 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # clue/http-proxy-react [![Build Status](https://travis-ci.org/clue/php-http-proxy-react.svg?branch=master)](https://travis-ci.org/clue/php-http-proxy-react) -Async HTTP CONNECT proxy connector, use any TCP/IP protocol through an HTTP proxy server, built on top of ReactPHP. +Async HTTP CONNECT proxy connector, use any TCP/IP protocol through an HTTP proxy server, built on top of [ReactPHP](http://reactphp.org). **Table of contents** @@ -320,13 +320,13 @@ $proxy->connect('tcp://smtp.googlemail.com:587'); ## Install -The recommended way to install this library is [through Composer](http://getcomposer.org). -[New to Composer?](http://getcomposer.org/doc/00-intro.md) +The recommended way to install this library is [through Composer](https://getcomposer.org). +[New to Composer?](https://getcomposer.org/doc/00-intro.md) This will install the latest supported version: ```bash -$ composer require clue/http-proxy-react:^1.1 +$ composer require clue/http-proxy-react:^1.2 ``` See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. @@ -334,7 +334,7 @@ See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades. ## Tests To run the test suite, you first need to clone this repo and then install all -dependencies [through Composer](http://getcomposer.org): +dependencies [through Composer](https://getcomposer.org): ```bash $ composer install