/[Apache-SVN]/httpd/flood/trunk/flood_socket_keepalive.c
ViewVC logotype

Log of /httpd/flood/trunk/flood_socket_keepalive.c

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

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 653656 - (view) (annotate) - [select for diffs]
Modified Tue May 6 00:42:11 2008 UTC (18 months, 3 weeks ago) by fielding
File length: 16509 byte(s)
Diff to previous 647749 (colored)
promote flood to released products

Revision 647749 - (view) (annotate) - [select for diffs]
Modified Mon Apr 14 12:16:14 2008 UTC (19 months, 1 week ago) by wrowe
Original Path: httpd/test/flood/trunk/flood_socket_keepalive.c
File length: 16509 byte(s)
Diff to previous 490946 (colored)
flood is independent of framework, mod_specweb etc

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 106525 - (view) (annotate) - [select for diffs]
Modified Thu Nov 25 00:36:41 2004 UTC (5 years ago) by nd
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 16326 byte(s)
Diff to previous 102613 (colored)
property cleanup

Revision 102613 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 08:12:56 2004 UTC (5 years, 9 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 16326 byte(s)
Diff to previous 102612 (colored)
fixed typo.

Revision 102612 - (view) (annotate) - [select for diffs]
Modified Sun Feb 8 23:34:41 2004 UTC (5 years, 9 months ago) by jacekp
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 16322 byte(s)
Diff to previous 102138 (colored)
migrating to ALv2

Revision 102138 - (view) (annotate) - [select for diffs]
Modified Thu Jan 1 13:38:37 2004 UTC (5 years, 10 months ago) by nd
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 18273 byte(s)
Diff to previous 101177 (colored)
update license and copyright to 2004

Revision 101177 - (view) (annotate) - [select for diffs]
Modified Sat Sep 6 04:27:37 2003 UTC (6 years, 2 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 18273 byte(s)
Diff to previous 98570 (colored)
Fix two minor bugs:

* Change open_socket prototype to return errors.
* Fix HEAD responses with Content-Length specified being handled incorrectly.

Revision 98570 - (view) (annotate) - [select for diffs]
Modified Mon Feb 3 17:11:02 2003 UTC (6 years, 9 months ago) by nd
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 17994 byte(s)
Diff to previous 98529 (colored)
bah! what a boring job - update license to 2003.

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 96141 - (view) (annotate) - [select for diffs]
Modified Mon Jul 22 05:50:05 2002 UTC (7 years, 4 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 17964 byte(s)
Diff to previous 95431 (colored)
Revamp keepalive_recv_resp by utilizing the APR table API to parse the
MIME response headers.

Revision 95431 - (view) (annotate) - [select for diffs]
Modified Fri May 31 07:59:27 2002 UTC (7 years, 5 months ago) by wrowe
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 17238 byte(s)
Diff to previous 94237 (colored)
  Fix massive header bogosity

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 94228 - (view) (annotate) - [select for diffs]
Modified Wed Mar 27 18:52:25 2002 UTC (7 years, 8 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 16943 byte(s)
Diff to previous 94224 (colored)
- Allow keepalive connections to be handled with T-E: Chunked
- Fix a bug where 2 bytes would be read and we'd think that'd be EOS.
  Oops.
- Various other sundry things perhaps

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 94196 - (view) (annotate) - [select for diffs]
Modified Wed Mar 27 01:41:52 2002 UTC (7 years, 8 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 17225 byte(s)
Diff to previous 92309 (colored)
First cut (not complete) of T-E: Chunked support.

Doesn't read all chunks just yet.  More debugging is needed.  But, it
doesn't segfault in my tests.

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 91251 - (view) (annotate) - [select for diffs]
Modified Wed Oct 3 01:33:00 2001 UTC (8 years, 1 month ago) by fielding
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 10246 byte(s)
Diff to previous 90146 (colored)
silence annoying warnings

Revision 90146 - (view) (annotate) - [select for diffs]
Modified Mon Aug 13 23:42:25 2001 UTC (8 years, 3 months ago) by aaron
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 10242 byte(s)
Diff to previous 89970 (colored)
These newer files needed ASF license headers.

Revision 89970 - (view) (annotate) - [select for diffs]
Modified Tue Aug 7 00:23:46 2001 UTC (8 years, 3 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 7608 byte(s)
Diff to previous 89952 (colored)
Technically, we ought to lowercase the entire response buffer and check
it for header values in a normalized fashion.

That's expensive (i.e. do that later).  This gets us to recognize iPlanet's
Content-length header for now.

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 89923 - (view) (annotate) - [select for diffs]
Modified Sat Aug 4 16:45:50 2001 UTC (8 years, 3 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 6300 byte(s)
Diff to previous 89918 (colored)
If we want to load the entire response, do it even if we aren't keptalive.
(merge the logic for non-keepalives)

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 89889 - (view) (annotate) - [select for diffs]
Modified Fri Aug 3 00:21:07 2001 UTC (8 years, 3 months ago) by jerenkrantz
Original Path: httpd/test/trunk/flood/flood_socket_keepalive.c
File length: 4363 byte(s)
Diff to previous 89848 (colored)
Thinko.

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.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2