Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-push-stream-module
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
nginx-push-stream-module
Commits
cf925122
Commit
cf925122
authored
Oct 01, 2011
by
Wandenberg Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adding patch to test reading under https, to detect when subscriber goes off
parent
126108e9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
200 additions
and
0 deletions
+200
-0
test_reading_with_ssl-nginx.0.8.5x-0.9.1.patch
patchs/test_reading_with_ssl-nginx.0.8.5x-0.9.1.patch
+40
-0
test_reading_with_ssl-nginx.0.9.2-0.9.3.patch
patchs/test_reading_with_ssl-nginx.0.9.2-0.9.3.patch
+40
-0
test_reading_with_ssl-nginx.0.9.4-1.0.5.patch
patchs/test_reading_with_ssl-nginx.0.9.4-1.0.5.patch
+40
-0
test_reading_with_ssl-nginx.1.0.6-1.1.1.patch
patchs/test_reading_with_ssl-nginx.1.0.6-1.1.1.patch
+40
-0
test_reading_with_ssl-nginx.1.1.2-1.1.4.patch
patchs/test_reading_with_ssl-nginx.1.1.2-1.1.4.patch
+40
-0
No files found.
patchs/test_reading_with_ssl-nginx.0.8.5x-0.9.1.patch
0 → 100644
View file @
cf925122
--- src/http/ngx_http_request.c 2010-07-05 10:35:20.000000000 -0300
+++ src/http/ngx_http_request.c 2011-09-25 23:44:21.053529001 -0300
@@ -2323,7 +2323,15 @@
#endif
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ n = SSL_peek(c->ssl->connection, buf, 1);
+ } else {
+ n = recv(c->fd, buf, 1, MSG_PEEK);
+ }
+#else
n = recv(c->fd, buf, 1, MSG_PEEK);
+#endif
if (n == 0) {
rev->eof = 1;
@@ -2333,9 +2341,19 @@
goto closed;
} else if (n == -1) {
- err = ngx_socket_errno;
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ err = SSL_get_error(c->ssl->connection, n);
+ } else {
+ err = ngx_socket_errno;
+ }
+
+ if ((err != NGX_EAGAIN) && (err != SSL_ERROR_WANT_READ) && (err != SSL_ERROR_WANT_WRITE)) {
+#else
+ err = ngx_socket_errno;
- if (err != NGX_EAGAIN) {
+ if (err != NGX_EAGAIN) {
+#endif
rev->eof = 1;
c->error = 1;
patchs/test_reading_with_ssl-nginx.0.9.2-0.9.3.patch
0 → 100644
View file @
cf925122
--- src/http/ngx_http_request.c 2010-12-06 09:11:05.000000000 -0200
+++ src/http/ngx_http_request.c 2011-09-30 22:44:39.395845002 -0300
@@ -2327,7 +2327,15 @@
#endif
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ n = SSL_peek(c->ssl->connection, buf, 1);
+ } else {
+ n = recv(c->fd, buf, 1, MSG_PEEK);
+ }
+#else
n = recv(c->fd, buf, 1, MSG_PEEK);
+#endif
if (n == 0) {
rev->eof = 1;
@@ -2337,9 +2345,19 @@
goto closed;
} else if (n == -1) {
- err = ngx_socket_errno;
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ err = SSL_get_error(c->ssl->connection, n);
+ } else {
+ err = ngx_socket_errno;
+ }
+
+ if ((err != NGX_EAGAIN) && (err != SSL_ERROR_WANT_READ) && (err != SSL_ERROR_WANT_WRITE)) {
+#else
+ err = ngx_socket_errno;
- if (err != NGX_EAGAIN) {
+ if (err != NGX_EAGAIN) {
+#endif
rev->eof = 1;
c->error = 1;
patchs/test_reading_with_ssl-nginx.0.9.4-1.0.5.patch
0 → 100644
View file @
cf925122
--- src/http/ngx_http_request.c 2011-01-20 08:37:58.000000000 -0200
+++ src/http/ngx_http_request.c 2011-09-30 22:55:09.935845001 -0300
@@ -2332,7 +2332,15 @@
#endif
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ n = SSL_peek(c->ssl->connection, buf, 1);
+ } else {
+ n = recv(c->fd, buf, 1, MSG_PEEK);
+ }
+#else
n = recv(c->fd, buf, 1, MSG_PEEK);
+#endif
if (n == 0) {
rev->eof = 1;
@@ -2342,9 +2350,19 @@
goto closed;
} else if (n == -1) {
- err = ngx_socket_errno;
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ err = SSL_get_error(c->ssl->connection, n);
+ } else {
+ err = ngx_socket_errno;
+ }
+
+ if ((err != NGX_EAGAIN) && (err != SSL_ERROR_WANT_READ) && (err != SSL_ERROR_WANT_WRITE)) {
+#else
+ err = ngx_socket_errno;
- if (err != NGX_EAGAIN) {
+ if (err != NGX_EAGAIN) {
+#endif
rev->eof = 1;
c->error = 1;
patchs/test_reading_with_ssl-nginx.1.0.6-1.1.1.patch
0 → 100644
View file @
cf925122
--- src/http/ngx_http_request.c 2011-08-29 09:45:03.000000000 -0300
+++ src/http/ngx_http_request.c 2011-09-30 23:59:43.265845001 -0300
@@ -2335,7 +2335,15 @@
#endif
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ n = SSL_peek(c->ssl->connection, buf, 1);
+ } else {
+ n = recv(c->fd, buf, 1, MSG_PEEK);
+ }
+#else
n = recv(c->fd, buf, 1, MSG_PEEK);
+#endif
if (n == 0) {
rev->eof = 1;
@@ -2345,9 +2353,19 @@
goto closed;
} else if (n == -1) {
- err = ngx_socket_errno;
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ err = SSL_get_error(c->ssl->connection, n);
+ } else {
+ err = ngx_socket_errno;
+ }
+
+ if ((err != NGX_EAGAIN) && (err != SSL_ERROR_WANT_READ) && (err != SSL_ERROR_WANT_WRITE)) {
+#else
+ err = ngx_socket_errno;
- if (err != NGX_EAGAIN) {
+ if (err != NGX_EAGAIN) {
+#endif
rev->eof = 1;
c->error = 1;
patchs/test_reading_with_ssl-nginx.1.1.2-1.1.4.patch
0 → 100644
View file @
cf925122
--- src/http/ngx_http_request.c 2011-10-01 00:27:17.895845001 -0300
+++ src/http/ngx_http_request.c 2011-10-01 00:15:46.055845002 -0300
@@ -2353,7 +2353,15 @@
#endif
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ n = SSL_peek(c->ssl->connection, buf, 1);
+ } else {
+ n = recv(c->fd, buf, 1, MSG_PEEK);
+ }
+#else
n = recv(c->fd, buf, 1, MSG_PEEK);
+#endif
if (n == 0) {
rev->eof = 1;
@@ -2363,9 +2371,19 @@
goto closed;
} else if (n == -1) {
- err = ngx_socket_errno;
+#if (NGX_HTTP_SSL)
+ if (c->ssl != NULL) {
+ err = SSL_get_error(c->ssl->connection, n);
+ } else {
+ err = ngx_socket_errno;
+ }
+
+ if ((err != NGX_EAGAIN) && (err != SSL_ERROR_WANT_READ) && (err != SSL_ERROR_WANT_WRITE)) {
+#else
+ err = ngx_socket_errno;
- if (err != NGX_EAGAIN) {
+ if (err != NGX_EAGAIN) {
+#endif
rev->eof = 1;
c->error = 1;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment