projects
/
m6w6
/
ext-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
- use global send buffer size for output buffering, as we'll flush anyways after...
[m6w6/ext-http]
/
http_cache_api.c
diff --git
a/http_cache_api.c
b/http_cache_api.c
index c7196c1891acb0018cadadce19e1cde8bcedff5f..5eca48a6650576054b7b8a844e1da6a89b8c7bf2 100644
(file)
--- a/
http_cache_api.c
+++ b/
http_cache_api.c
@@
-43,12
+43,13
@@
STATUS _http_cache_global_init(INIT_FUNC_ARGS)
{
HTTP_LONG_CONSTANT("HTTP_ETAG_MD5", HTTP_ETAG_MD5);
HTTP_LONG_CONSTANT("HTTP_ETAG_SHA1", HTTP_ETAG_SHA1);
{
HTTP_LONG_CONSTANT("HTTP_ETAG_MD5", HTTP_ETAG_MD5);
HTTP_LONG_CONSTANT("HTTP_ETAG_SHA1", HTTP_ETAG_SHA1);
+ HTTP_LONG_CONSTANT("HTTP_ETAG_CRC32", HTTP_ETAG_CRC32);
#ifdef HTTP_HAVE_MHASH
{
int l, i, c = mhash_count();
#ifdef HTTP_HAVE_MHASH
{
int l, i, c = mhash_count();
- for (i = 0; i < c; ++i) {
+ for (i = 0; i <
=
c; ++i) {
char const_name[256] = {0};
const char *hash_name = mhash_get_hash_name_static(i);
char const_name[256] = {0};
const char *hash_name = mhash_get_hash_name_static(i);
@@
-214,7
+215,7
@@
PHP_HTTP_API STATUS _http_cache_etag(const char *etag, size_t etag_len,
return SUCCESS;
}
return SUCCESS;
}
- if (HTTP_G(etag).started = (SUCCESS == php_start_ob_buffer_named("ob_etaghandler", HTTP_
SENDBUF_SIZE
, 1 TSRMLS_CC))) {
+ if (HTTP_G(etag).started = (SUCCESS == php_start_ob_buffer_named("ob_etaghandler", HTTP_
G(send).buffer_size
, 1 TSRMLS_CC))) {
return SUCCESS;
} else {
return FAILURE;
return SUCCESS;
} else {
return FAILURE;