Skip to content

Commit

Permalink
fix #750, use specific error code for dns resolve. 2.0.231
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Jan 18, 2017
1 parent 727652c commit 60be29f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ Remark:

## History

* v2.0, 2017-01-18, fix [#750][bug #750] use specific error code for dns resolve. 2.0.231
* <strong>v2.0, 2017-01-18, [2.0 beta4(2.0.230)][r2.0b4] released. 86334 lines.</strong>
* v2.0, 2017-01-18, fix [#749][bug #749], timestamp overflow for ATC. 2.0.230
* v2.0, 2017-01-11, fix [#740][bug #740], convert ts aac audio private stream 1 to common. 2.0.229
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/core/srs_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// current release version
#define VERSION_MAJOR 2
#define VERSION_MINOR 0
#define VERSION_REVISION 230
#define VERSION_REVISION 231

// generated by configure, only macros.
#include <srs_auto_headers.hpp>
Expand Down
1 change: 1 addition & 0 deletions trunk/src/kernel/srs_kernel_error.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#define ERROR_SYSTEM_DIR_EXISTS 1056
#define ERROR_SYSTEM_CREATE_DIR 1057
#define ERROR_SYSTEM_KILL 1058
#define ERROR_SYSTEM_DNS_RESOLVE 1059

///////////////////////////////////////////////////////
// RTMP protocol error.
Expand Down
2 changes: 1 addition & 1 deletion trunk/src/libs/srs_librtmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ int srs_librtmp_context_resolve_host(Context* context)
// connect to server:port
context->ip = srs_dns_resolve(context->host);
if (context->ip.empty()) {
return -1;
return ERROR_SYSTEM_DNS_RESOLVE;
}

return ret;
Expand Down

0 comments on commit 60be29f

Please sign in to comment.