cvs: pecl /http http_api.c http_request_api.c http_request_pool_api.c http_send_api.c

From: Date: Wed, 05 Sep 2007 14:03:24 +0000
Subject: cvs: pecl /http http_api.c http_request_api.c http_request_pool_api.c http_send_api.c
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-8511@lists.php.net to get a copy of this message
mike Wed Sep 5 14:03:24 2007 UTC Modified files: /pecl/http http_send_api.c http_request_pool_api.c http_api.c http_request_api.c Log: - fix some warnings http://cvs.php.net/viewvc.cgi/pecl/http/http_send_api.c?r1=1.71&r2=1.72&diff_format=u Index: pecl/http/http_send_api.c diff -u pecl/http/http_send_api.c:1.71 pecl/http/http_send_api.c:1.72 --- pecl/http/http_send_api.c:1.71 Wed Sep 5 12:15:25 2007 +++ pecl/http/http_send_api.c Wed Sep 5 14:03:23 2007 @@ -10,7 +10,7 @@ +--------------------------------------------------------------------+ */ -/* $Id: http_send_api.c,v 1.71 2007/09/05 12:15:25 mike Exp $ */ +/* $Id: http_send_api.c,v 1.72 2007/09/05 14:03:23 mike Exp $ */ #define HTTP_WANT_SAPI #define HTTP_WANT_ZLIB @@ -18,7 +18,6 @@ #include "php_http.h" #include "php_streams.h" -#include "ext/standard/php_lcg.h" #include "php_http_api.h" #include "php_http_cache_api.h" http://cvs.php.net/viewvc.cgi/pecl/http/http_request_pool_api.c?r1=1.59&r2=1.60&diff_format=u Index: pecl/http/http_request_pool_api.c diff -u pecl/http/http_request_pool_api.c:1.59 pecl/http/http_request_pool_api.c:1.60 --- pecl/http/http_request_pool_api.c:1.59 Wed Sep 5 12:15:25 2007 +++ pecl/http/http_request_pool_api.c Wed Sep 5 14:03:23 2007 @@ -10,7 +10,7 @@ +--------------------------------------------------------------------+ */ -/* $Id: http_request_pool_api.c,v 1.59 2007/09/05 12:15:25 mike Exp $ */ +/* $Id: http_request_pool_api.c,v 1.60 2007/09/05 14:03:23 mike Exp $ */ #define HTTP_WANT_CURL #define HTTP_WANT_EVENT @@ -86,7 +86,7 @@ TSRMLS_SET_CTX(pool->tsrm_ls); -#if HTTP_HAVE_EVENT +#ifdef HTTP_HAVE_EVENT pool->timeout = ecalloc(1, sizeof(struct event)); curl_multi_setopt(pool->ch, CURLMOPT_SOCKETDATA, pool); curl_multi_setopt(pool->ch, CURLMOPT_SOCKETFUNCTION, http_request_pool_socket_callback); @@ -297,7 +297,7 @@ fprintf(stderr, "Destructing request pool %p\n", pool); #endif -#if HTTP_HAVE_EVENT +#ifdef HTTP_HAVE_EVENT efree(pool->timeout); #endif http://cvs.php.net/viewvc.cgi/pecl/http/http_api.c?r1=1.167&r2=1.168&diff_format=u Index: pecl/http/http_api.c diff -u pecl/http/http_api.c:1.167 pecl/http/http_api.c:1.168 --- pecl/http/http_api.c:1.167 Wed Sep 5 12:15:25 2007 +++ pecl/http/http_api.c Wed Sep 5 14:03:23 2007 @@ -10,13 +10,14 @@ +--------------------------------------------------------------------+ */ -/* $Id: http_api.c,v 1.167 2007/09/05 12:15:25 mike Exp $ */ +/* $Id: http_api.c,v 1.168 2007/09/05 14:03:23 mike Exp $ */ #define HTTP_WANT_SAPI #include "php_http.h" #include "php_output.h" #include "ext/standard/url.h" +#include "ext/standard/php_lcg.h" #include "php_http_api.h" #include "php_http_send_api.h" http://cvs.php.net/viewvc.cgi/pecl/http/http_request_api.c?r1=1.157&r2=1.158&diff_format=u Index: pecl/http/http_request_api.c diff -u pecl/http/http_request_api.c:1.157 pecl/http/http_request_api.c:1.158 --- pecl/http/http_request_api.c:1.157 Fri Jun 8 08:25:10 2007 +++ pecl/http/http_request_api.c Wed Sep 5 14:03:23 2007 @@ -10,7 +10,7 @@ +--------------------------------------------------------------------+ */ -/* $Id: http_request_api.c,v 1.157 2007/06/08 08:25:10 mike Exp $ */ +/* $Id: http_request_api.c,v 1.158 2007/09/05 14:03:23 mike Exp $ */ #define HTTP_WANT_SAPI #define HTTP_WANT_CURL @@ -911,7 +911,7 @@ case CURLE_RECV_ERROR: case CURLE_SSL_ENGINE_INITFAILED: case CURLE_LOGIN_DENIED: - if (request->_retry.delay) { + if (request->_retry.delay >= HTTP_DIFFSEC) { http_sleep(request->_retry.delay); } goto retry;

« previous php.pecl.cvs (#8511) next »