Log of /httpd/flood/trunk/flood_socket_keepalive.c
Parent Directory
|
Revision Log
Revision
699195 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 26 06:53:51 2008 UTC
(14 months ago)
by
jerenkrantz
File length: 16785 byte(s)
Diff to
previous 698796
(
colored)
Fix issue with chunked keep-alive responses when the initial chunk content
starts with a NULL byte.
* flood_socket_keepalive.c
(keepalive_read_chunk): Don't inspect resp->chunk with respect to
validity; re-order comparisons to make a bit more sense.
(keepalive_recv_resp): Be sure that chunk_length is always initialized.
Revision
698796 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 25 01:47:23 2008 UTC
(14 months ago)
by
jerenkrantz
File length: 16771 byte(s)
Diff to
previous 696055
(
colored)
Fix HTTP keepalives over SSL.
* flood_net_ssl.c
(ssl_check_socket): Implement.
* flood_net_ssl.h
(ssl_check_socket): Declare.
* flood_socket_keepalive.c
(ksock_check_socket, ksock_close_socket): Declare helper macros.
(keepalive_begin_conn): Use helper function to call appropriate checker.
(keepalive_end_conn): Use helper to close socket.
Revision
696055 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Sep 16 21:01:30 2008 UTC
(14 months, 1 week ago)
by
jerenkrantz
File length: 16538 byte(s)
Diff to
previous 653656
(
colored)
Fix up various compiler warnings.
* flood_net_ssl.c, flood_net_ssl.h
(ssl_read_socket): Switch from int to apr_size_t.
* flood_socket_keepalive.c
(keepalive_read_chunk, keepalive_load_resp, keepalive_recv_resp): Switch
from int to apr_size_t.
* flood_round_robin.c
(round_robin_postprocess): Switch from int to apr_size_t.
* flood_net.c, flood_net.h
(read_socket): Switch from int to apr_size_t.
Revision
490946 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Fri Dec 29 07:49:58 2006 UTC
(2 years, 10 months ago)
by
jerenkrantz
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 16509 byte(s)
Diff to
previous 106525
(
colored)
Update flood to the new license header.
* flood/NOTICE: Update the copyright year to the date of first publication.
* flood/flood_farmer.c, flood/flood_report_relative_times.h,
flood/flood_simple_reports.h, flood/flood_test.c, flood/flood.c,
flood/flood_farmer.h, flood/flood_socket_generic.c, flood/flood_farm.c,
flood/flood_socket_generic.h, flood/flood_farm.h, flood/flood_config.c,
flood/flood_net_ssl.c, flood/flood_config.h, flood/flood_net_ssl.h,
flood/flood_socket_keepalive.c, flood/flood_easy_reports.c,
flood/flood_round_robin.c, flood/flood_socket_keepalive.h,
flood/flood_easy_reports.h, flood/flood_round_robin.h, flood/flood_net.c,
flood/flood_net.h, flood/flood_profile.c, flood/flood_profile.h,
flood/flood_report_relative_times.c, flood/flood_simple_reports.c:
Update to new license header.
(Used committers/relicense/src/perl/update-AL20.pl)
Revision
98529 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Jan 29 06:19:20 2003 UTC
(6 years, 9 months ago)
by
jerenkrantz
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 17989 byte(s)
Diff to
previous 96141
(
colored)
(Win32) Fixed link error apr_pstrmemdup in flood_socket_keepalive.c.
This patch addresses a link error. The code invoked apr_pstrmemdup()
in flood_socket_keepalive.c without including the proper declaration.
The compiler generates its own guess, which is incorrect. The code now
includes the file:
apr_strings.h
so that it picks up the proper declaration of apr_pstrmemdup.
Below are examples of the compile-time warning and the
link failures that this patch addresses.
flood_socket_keepalive.c(407) : warning C4013: 'apr_pstrmemdup'
undefined; assuming extern returning int
flood_socket_keepalive.obj : error LNK2001: unresolved external
symbol _apr_pstrmemdup
Submitted by: Phi-Long Tran <ptran@pobox.com>
Reviewed by: Justin Erenkrantz
Revision
94237 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 27 21:38:03 2002 UTC
(7 years, 8 months ago)
by
jerenkrantz
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 17140 byte(s)
Diff to
previous 94228
(
colored)
Add check_socket call to flood_net.h. This attempts to determine if the
other side has closed on us by doing a poll. From my observations on
Solaris, it seems that when a FIN is received from the other side,
a POLLIN event is generated. Odd. I'd think it should be POLLERR or
POLLHUP, but that doesn't seem to be the case.
Revision
94224 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Wed Mar 27 18:03:35 2002 UTC
(7 years, 8 months ago)
by
jerenkrantz
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 16961 byte(s)
Diff to
previous 94196
(
colored)
After a good night's sleep, rethink the chunking code to eliminate most
of the problems. It should now read the document until the end of the
document (as denoted by the 0 chunk size).
Note that there still seems to be a segfault that is lingering every
once in a while.
Revision
92309 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Tue Dec 4 09:10:34 2001 UTC
(7 years, 11 months ago)
by
jerenkrantz
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 10381 byte(s)
Diff to
previous 91251
(
colored)
Oh, that's nice. If we don't have SSL support built-in, they get a generic
error message. At least indicate that it isn't "implemented" - so, if we
see this with open_socket call, we know what it is. (And with the recent
patch to print the URL, it'll be obvious when this happens.)
Revision
89952 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Mon Aug 6 19:44:12 2001 UTC
(8 years, 3 months ago)
by
jerenkrantz
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 7303 byte(s)
Diff to
previous 89923
(
colored)
Merge SSL socket code in with the normal socket calls. Now determined
based on the scheme.
Note that the flood_net.c code may return APR_EGENERAL (there really is
no way to map to APR_EOF or APR_ETIMEUP with OpenSSL's API), so that
must also be checked and treated as an error.
Remove the flood_socket_ssl.c code. We were doing the abstraction twice.
Once at the flood_socket level and the flood_net level, this is cleaner.
Revision
89918 -
(
view)
(
annotate)
-
[select for diffs]
Modified
Sat Aug 4 04:26:21 2001 UTC
(8 years, 3 months ago)
by
jerenkrantz
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 6149 byte(s)
Diff to
previous 89889
(
colored)
Add ability to retrieve some data from the response and place it in
state variables (max of 10). These "state" variables live for the
life of the profile (i.e. all elements in the urllist). They may be
referred in any template via $[0-9]. Add ability to store the
entire response (only active if a response template is present).
This works. Sure. I'm going home now.
Revision
89848 -
(
view)
(
annotate)
-
[select for diffs]
Added
Wed Aug 1 03:10:37 2001 UTC
(8 years, 3 months ago)
by
aaron
Original Path:
httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 4305 byte(s)
This is an atypically large patch. I got half way into fixing
the profile_events API to work with keepalive when I realized
that these event "groups" should be off in their own files.
So:
- Updated the profile_events_t struct to handle sockets
in an abstractable way. They now have a lifetime and
their behaviour can be overriden in this manner.
- Regrouped the events in the profile_events to make
more sense. This stuff should probable be split up
into the groups (where a "group" is a bunch of
event functions that need to all be overriden at
once to provide some new functionality). Currently
the groups are: profile, sockets, reporting, verification.
- Moved the three implementations that we currently have
for the socket events group each into their own files.
The current flavors are: generic, ssl, and keepalive.
- Updated the various examples to work with the new
events.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.