]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
10 years agoUpdate class MessageCounters to MessageSizes
Amos Jeffries [Mon, 11 Nov 2013 12:09:44 +0000 (05:09 -0700)] 
Update class MessageCounters to MessageSizes

Also, renaming polish after audit feedback.

10 years agoFix typo in rev.13121
Amos Jeffries [Mon, 11 Nov 2013 12:06:11 +0000 (05:06 -0700)] 
Fix typo in rev.13121

10 years agoFix uninitialized members in SBufFindTest.cc
Amos Jeffries [Mon, 11 Nov 2013 11:47:36 +0000 (04:47 -0700)] 
Fix uninitialized members in SBufFindTest.cc

  Detected by Coverity Scan. Issue 1104279.

10 years agoFix uninitialized members in stub_HttpReply.cc
Amos Jeffries [Mon, 11 Nov 2013 11:43:53 +0000 (04:43 -0700)] 
Fix uninitialized members in stub_HttpReply.cc

  Detected by Coverity Scan. Issue 740582.

10 years agoFix possible NULL-dereference handling annotations
Amos Jeffries [Mon, 11 Nov 2013 11:24:23 +0000 (04:24 -0700)] 
Fix possible NULL-dereference handling annotations

  Detected by Coverity Scan. Issue 1127088

10 years agoLanguage: it updates
Francesco Chemolli [Sun, 10 Nov 2013 22:34:55 +0000 (23:34 +0100)] 
Language: it updates

10 years agoSourceFormat Enforcement
Automatic source maintenance [Fri, 8 Nov 2013 04:15:43 +0000 (21:15 -0700)] 
SourceFormat Enforcement

10 years agoReplace blocking sleep(3) and close UDS socket on failures.
Alex Rousskov [Thu, 7 Nov 2013 19:45:12 +0000 (12:45 -0700)] 
Replace blocking sleep(3) and close UDS socket on failures.

The two addressed XXX were not causing any known serious bugs on their own,
but the blocking sleep was ugly and possibly in the way of further
kid registration fixes/improvements.

10 years agoBug 3936: error-details.txt parse error
Christos Tsantilas [Thu, 7 Nov 2013 10:46:14 +0000 (12:46 +0200)] 
Bug 3936: error-details.txt parse error

Squid fails parsing error-details.txt template when one or more listed OpenSSL
errors are not supported on running platform.
This patch add a hardcoded list of OpenSSL errors wich can be optional.

This is a Measurement Factory project

10 years agoFix stub_external_acl on icc
Francesco Chemolli [Thu, 7 Nov 2013 02:59:49 +0000 (03:59 +0100)] 
Fix stub_external_acl on icc

10 years agoSourceFormat Enforcement
Automatic source maintenance [Thu, 7 Nov 2013 02:04:25 +0000 (19:04 -0700)] 
SourceFormat Enforcement

10 years agoBug 3906: Filedescriptor leaks on snmp
Christos Tsantilas [Wed, 6 Nov 2013 18:11:29 +0000 (20:11 +0200)] 
Bug 3906: Filedescriptor leaks on snmp
author: Alex Rousskov <rousskov@measurement-factory.com>, Christos Tsantilas <chtsanti@users.sourceforge.net>

Coordinator should not send SNMP client FD to strands when broadcasting SNMP
requests. Strands do not need the descriptor and were forgetting to close it,
causing one FD leak on every SNMP query in SMP mode.

Enhance Ipc::TypedMsgHdr to be able to tell whether the message has a FD.

This is a Measurement Factory project

10 years agoMerge from staging branch: prepare and use more stubs in the unit tests
Francesco Chemolli [Wed, 6 Nov 2013 16:58:23 +0000 (17:58 +0100)] 
Merge from staging branch: prepare and use more stubs in the unit tests

10 years agoDefined STOREMETA_SOURCE source files group for StoreMeta-related files
Francesco Chemolli [Wed, 6 Nov 2013 10:20:13 +0000 (11:20 +0100)] 
Defined STOREMETA_SOURCE source files group for StoreMeta-related files

10 years agoSmall fixes to wccp2 and SwapDir stubs as suggested during audit
Francesco Chemolli [Wed, 6 Nov 2013 09:54:51 +0000 (10:54 +0100)] 
Small fixes to wccp2 and SwapDir stubs as suggested during audit

10 years agostub-ified tunnel.cc and StoreMeta.cc
Francesco Chemolli [Tue, 5 Nov 2013 22:04:30 +0000 (23:04 +0100)] 
stub-ified tunnel.cc and StoreMeta.cc

10 years agoStub-ified carp.cc
Francesco Chemolli [Tue, 5 Nov 2013 21:19:03 +0000 (22:19 +0100)] 
Stub-ified carp.cc

10 years agostub-ified SwapDir.cc
Francesco Chemolli [Tue, 5 Nov 2013 19:57:10 +0000 (20:57 +0100)] 
stub-ified SwapDir.cc

10 years agoStubify wccp2.cc
Francesco Chemolli [Tue, 5 Nov 2013 14:47:45 +0000 (15:47 +0100)] 
Stubify wccp2.cc

10 years agoMore widely use stub_time.cc
Francesco Chemolli [Tue, 5 Nov 2013 14:30:41 +0000 (15:30 +0100)] 
More widely use stub_time.cc

10 years agostub-ify whois.cc
Francesco Chemolli [Tue, 5 Nov 2013 14:22:49 +0000 (15:22 +0100)] 
stub-ify whois.cc

10 years agoRevert stubification of mem.cc in testSBuf
Francesco Chemolli [Tue, 5 Nov 2013 14:16:46 +0000 (15:16 +0100)] 
Revert stubification of mem.cc in testSBuf

10 years agoCompleted stubification of cache_manager.cc
Francesco Chemolli [Tue, 5 Nov 2013 10:23:49 +0000 (11:23 +0100)] 
Completed stubification of cache_manager.cc

10 years agoImprove stub_mem.cc, use it in testSBuf
Francesco Chemolli [Tue, 5 Nov 2013 10:03:27 +0000 (11:03 +0100)] 
Improve stub_mem.cc, use it in testSBuf

10 years agoStub-ified store_digest.cc, fixed stub_CacheDigest.cc
Francesco Chemolli [Tue, 5 Nov 2013 09:48:30 +0000 (10:48 +0100)] 
Stub-ified store_digest.cc, fixed stub_CacheDigest.cc

10 years ago*broken*: stubify CacgeDigest.cc
Francesco Chemolli [Tue, 5 Nov 2013 07:44:57 +0000 (08:44 +0100)] 
*broken*: stubify CacgeDigest.cc

10 years agoSet up stub_libauth.cc return values properly
Francesco Chemolli [Tue, 5 Nov 2013 06:26:39 +0000 (07:26 +0100)] 
Set up stub_libauth.cc return values properly

10 years agoAdded stub for ETag.cc
Francesco Chemolli [Tue, 5 Nov 2013 05:59:08 +0000 (06:59 +0100)] 
Added stub for ETag.cc

10 years agoMerged from trunk
Francesco Chemolli [Mon, 4 Nov 2013 09:29:04 +0000 (10:29 +0100)] 
Merged from trunk

10 years agoPrep for 3.3.10
Amos Jeffries [Sun, 3 Nov 2013 08:52:42 +0000 (01:52 -0700)] 
Prep for 3.3.10

10 years agoSourceFormat Enforcement
Automatic source maintenance [Fri, 1 Nov 2013 00:15:11 +0000 (18:15 -0600)] 
SourceFormat Enforcement

10 years agoMerged from trunk
Francesco Chemolli [Thu, 31 Oct 2013 06:28:58 +0000 (07:28 +0100)] 
Merged from trunk

10 years agoRemove auth/User.cci, moving contents to .h and .cc files
Francesco Chemolli [Thu, 31 Oct 2013 04:39:36 +0000 (05:39 +0100)] 
Remove auth/User.cci, moving contents to .h and .cc files

10 years agoMerged from trunk
Francesco Chemolli [Wed, 30 Oct 2013 21:27:05 +0000 (22:27 +0100)] 
Merged from trunk

10 years agoAdded some more stubs
Francesco Chemolli [Wed, 30 Oct 2013 18:37:05 +0000 (19:37 +0100)] 
Added some more stubs

10 years agostub-ified testSBuf
Francesco Chemolli [Wed, 30 Oct 2013 17:48:50 +0000 (18:48 +0100)] 
stub-ified testSBuf

10 years agoimplemeted stub_time, more stubs in testConfigParser
Francesco Chemolli [Wed, 30 Oct 2013 17:42:48 +0000 (18:42 +0100)] 
implemeted stub_time, more stubs in testConfigParser

10 years agoUsed more stubs in testStatHist and testVector
Francesco Chemolli [Wed, 30 Oct 2013 17:20:23 +0000 (18:20 +0100)] 
Used more stubs in testStatHist and testVector

10 years agorenamed stub_libacls.cc to stub_libauth_acls.cc
Francesco Chemolli [Wed, 30 Oct 2013 14:30:33 +0000 (15:30 +0100)] 
renamed stub_libacls.cc to stub_libauth_acls.cc

10 years agoAdded missing references to Notes in unit tests
Francesco Chemolli [Wed, 30 Oct 2013 07:35:19 +0000 (08:35 +0100)] 
Added missing references to Notes in unit tests

10 years agoCacheMgr: normalize pconn report output
Amos Jeffries [Wed, 30 Oct 2013 06:17:30 +0000 (00:17 -0600)] 
CacheMgr: normalize pconn report output

- table rows start with TAB
- table cell delimiter is TAB
- table header cells start with TAB SP

10 years agoMerged from trunk
Francesco Chemolli [Tue, 29 Oct 2013 22:36:09 +0000 (23:36 +0100)] 
Merged from trunk

10 years agoRelease Notes: polish and add some missing details
Amos Jeffries [Tue, 29 Oct 2013 16:37:56 +0000 (09:37 -0700)] 
Release Notes: polish and add some missing details

10 years agokerberos_ldap_group: fix LDAP string duplication
Markus Moeller [Thu, 31 Oct 2013 19:25:50 +0000 (13:25 -0600)] 
kerberos_ldap_group: fix LDAP string duplication

10 years agoDrop String::undefined()
Amos Jeffries [Thu, 31 Oct 2013 19:13:17 +0000 (13:13 -0600)] 
Drop String::undefined()

It appears that all code using String::undefined() for boolean tests can
remain logically consistent using checks on string size() instead.
This helps by removing part of the
undefined-empty/defined-empty/0-length-empty string state
differentiation.

10 years agoMatch stub_event.cc to event.cc changes
Francesco Chemolli [Thu, 31 Oct 2013 17:13:24 +0000 (18:13 +0100)] 
Match stub_event.cc to event.cc changes

10 years agoAvoid "hot idle": A series of rapid select() calls with zero timeout.
Alex Rousskov [Thu, 31 Oct 2013 16:22:17 +0000 (10:22 -0600)] 
Avoid "hot idle": A series of rapid select() calls with zero timeout.

Squid uses "infinite" precision when it comes to deciding whether the next
timed event is ready but uses millisecond (1e-3) precision when deciding how
long to wait before the next event will be ready. This inconsistency results
in the EventScheduler engine telling the main loop that it has 0 milliseconds
to poll pending I/O, but when asked again (after the I/O is quickly polled),
the EventScheduler engine often does not schedule the promised event and tells
the main loop to poll for another 0 milliseconds again. This cycling may
happen many times in a row (until enough time is wasted for the next event to
become ready using higher precision).

The fixed code adds a minimum 1ms delay for not-yet-ready events. It also
places both decisions into one method (EventScheduler::timeRemaining), and
tries to polish/document decision logic (which is more complex than it may
seem) because the code has to avoid both inconsistent decisions and hot idle
loops while maintaining the traditional "no event is fired before it is due"
guarantee.

TODO: Idle Squid still runs hotter than it should because the maximum waiting
time is artificially capped outside the event queue to EVENT_LOOP_TIMEOUT=1s.
This causes at most one extra loop iteration per second.

10 years agoFix typo in stub_time.cc
Francesco Chemolli [Thu, 31 Oct 2013 15:31:39 +0000 (16:31 +0100)] 
Fix typo in stub_time.cc

10 years agoBug 3887: tcp_outgoing_tos not working for IPv6
Amos Jeffries [Tue, 29 Oct 2013 10:51:07 +0000 (03:51 -0700)] 
Bug 3887: tcp_outgoing_tos not working for IPv6

10 years agoLanguage: uk updates
Francesco [Thu, 31 Oct 2013 13:55:33 +0000 (02:55 +1300)] 
Language: uk updates

10 years agoLanguage: tr updates
Francesco [Thu, 31 Oct 2013 13:54:45 +0000 (02:54 +1300)] 
Language: tr updates

10 years agoLanguage: sv updates
Francesco [Thu, 31 Oct 2013 13:54:04 +0000 (02:54 +1300)] 
Language: sv updates

10 years agoLanguage: sr_LT updates
Francesco [Thu, 31 Oct 2013 13:53:22 +0000 (02:53 +1300)] 
Language: sr_LT updates

10 years agoLanguage: pt updates
Amos [Thu, 31 Oct 2013 13:52:33 +0000 (02:52 +1300)] 
Language: pt updates

10 years agoLanguage: nl updates
Amos [Thu, 31 Oct 2013 13:51:53 +0000 (02:51 +1300)] 
Language: nl updates

10 years agoLanguage: ms updates
Amos [Thu, 31 Oct 2013 13:51:04 +0000 (02:51 +1300)] 
Language: ms updates

10 years agoLanguage: ja updates
Amos [Thu, 31 Oct 2013 13:50:26 +0000 (02:50 +1300)] 
Language: ja updates

10 years agoLanguage: it updates
Amos [Thu, 31 Oct 2013 13:49:48 +0000 (02:49 +1300)] 
Language: it updates

10 years agoLanguage: id updates
Amos [Thu, 31 Oct 2013 13:49:11 +0000 (02:49 +1300)] 
Language: id updates

10 years agoLanguage: hy updates
Amos [Thu, 31 Oct 2013 13:48:32 +0000 (02:48 +1300)] 
Language: hy updates

10 years agoLanguage: fr updates
Amos [Thu, 31 Oct 2013 13:47:53 +0000 (02:47 +1300)] 
Language: fr updates

10 years agoLanguage: fi updates
Amos [Thu, 31 Oct 2013 13:47:18 +0000 (02:47 +1300)] 
Language: fi updates

10 years agoLanguage: fa updates
Amos [Thu, 31 Oct 2013 13:46:39 +0000 (02:46 +1300)] 
Language: fa updates

10 years agoLanguage: de updates
Amos [Thu, 31 Oct 2013 13:46:01 +0000 (02:46 +1300)] 
Language: de updates

10 years agoLanguage: ca updates
Amos [Thu, 31 Oct 2013 13:45:27 +0000 (02:45 +1300)] 
Language: ca updates

10 years agoLanguage: bg updates
Amos [Thu, 31 Oct 2013 13:44:53 +0000 (02:44 +1300)] 
Language: bg updates

10 years agoLanguage: az updates
Amos [Thu, 31 Oct 2013 13:44:18 +0000 (02:44 +1300)] 
Language: az updates

10 years agoLanguage: ar updates
Amos [Thu, 31 Oct 2013 13:43:45 +0000 (02:43 +1300)] 
Language: ar updates

10 years agoLanguage: af updates
Amos [Thu, 31 Oct 2013 13:43:10 +0000 (02:43 +1300)] 
Language: af updates

10 years agoLanguage: it updates
Francesco [Thu, 31 Oct 2013 13:41:24 +0000 (02:41 +1300)] 
Language: it updates

10 years agoLanguage: fr updates
Bernard [Thu, 31 Oct 2013 13:40:37 +0000 (02:40 +1300)] 
Language: fr updates

10 years agoLanguage: de updates
Amos [Thu, 31 Oct 2013 13:39:50 +0000 (02:39 +1300)] 
Language: de updates

10 years agoLanguage: ar updates
Amos [Thu, 31 Oct 2013 13:39:07 +0000 (02:39 +1300)] 
Language: ar updates

10 years agoFix stub_time definitions
Amos Jeffries [Tue, 29 Oct 2013 09:27:45 +0000 (02:27 -0700)] 
Fix stub_time definitions

10 years agoFixed icc compatibility for stubs in stub_libauth_acls.cc
Francesco Chemolli [Thu, 31 Oct 2013 11:14:45 +0000 (12:14 +0100)] 
Fixed icc compatibility for stubs in stub_libauth_acls.cc

10 years agoImplement stubs for external_acl, auth/libauth, auth/libacls, time
Francesco Chemolli [Thu, 31 Oct 2013 07:59:44 +0000 (08:59 +0100)] 
Implement stubs for external_acl, auth/libauth, auth/libacls, time

10 years agoCleanup transaction message size logging
Amos Jeffries [Tue, 29 Oct 2013 02:24:29 +0000 (19:24 -0700)] 
Cleanup transaction message size logging

- Add class MessageCounters to track all size properties of a
  transaction message. HTTP-centric for now.

- replaced AccessLogEntry::cache.requestHeadersSize with
  AccessLogEntry::http.clientRequest.headerSz

- replaced AccessLogEntry::cache.requestSize with
  AccessLogEntry::http.clientRequest (total() of all counters)

- replaced AccessLogEntry::cache.replyHeadersSize with
  AccessLogEntry::http.adaptedReply.headerSz

- replaced AccessLogEntry::cache.replySize with
  AccessLogEntry::http.adaptedReply (total() of all counters)

- Rename the logformat byte codes for message size counters to
  form a logical set of details by message type

- reorganize and document logformat option codes more clearly

There are no logic changes in this patch. Several accounting
bugs have been identified and marked for fixing later.

10 years agoMoved more unit tests to stub libacls
Francesco Chemolli [Mon, 28 Oct 2013 16:10:47 +0000 (17:10 +0100)] 
Moved more unit tests to stub libacls

10 years agomade stub_libacls conditional on USE_AUTH
Francesco Chemolli [Mon, 28 Oct 2013 15:43:39 +0000 (16:43 +0100)] 
made stub_libacls conditional on USE_AUTH

10 years agoFixed linking issues
Francesco Chemolli [Mon, 28 Oct 2013 14:09:13 +0000 (15:09 +0100)] 
Fixed linking issues

10 years agoMore unit tests rely on libauth stub
Francesco Chemolli [Mon, 28 Oct 2013 13:32:38 +0000 (14:32 +0100)] 
More unit tests rely on libauth stub

10 years agoAdded missing include in stub_libacls
Francesco Chemolli [Mon, 28 Oct 2013 13:28:48 +0000 (14:28 +0100)] 
Added missing include in stub_libacls

10 years agoMore unit tests rely on libauth stub
Francesco Chemolli [Mon, 28 Oct 2013 13:18:48 +0000 (14:18 +0100)] 
More unit tests rely on libauth stub

10 years agoMade stub_libauth symbols definition conditional on USE_AUTH
Francesco Chemolli [Mon, 28 Oct 2013 13:16:06 +0000 (14:16 +0100)] 
Made stub_libauth symbols definition conditional on USE_AUTH

10 years agostub-ified auth/libacls
Francesco Chemolli [Mon, 28 Oct 2013 12:57:27 +0000 (13:57 +0100)] 
stub-ified auth/libacls

10 years agoRemoved dependency on libauth from testUrl
Francesco Chemolli [Mon, 28 Oct 2013 10:58:04 +0000 (11:58 +0100)] 
Removed dependency on libauth from testUrl

10 years agoRemoved dependency on libauth from testEventLoop and test_http_range
Francesco Chemolli [Mon, 28 Oct 2013 10:46:15 +0000 (11:46 +0100)] 
Removed dependency on libauth from testEventLoop and test_http_range
Prepared stub for external_acl

10 years agoMoved more unit tests to stub libauth
Francesco Chemolli [Mon, 28 Oct 2013 10:04:48 +0000 (11:04 +0100)] 
Moved more unit tests to stub libauth

10 years agoMerged from trunk
Francesco Chemolli [Mon, 28 Oct 2013 08:51:10 +0000 (09:51 +0100)] 
Merged from trunk

10 years agoBroken: define and use stub_libauth.cc
Francesco Chemolli [Sun, 27 Oct 2013 22:27:51 +0000 (23:27 +0100)] 
Broken: define and use stub_libauth.cc

10 years agoAdd missing dependency link for Notes to testACLMaxUserIP
Amos Jeffries [Sun, 27 Oct 2013 21:46:56 +0000 (14:46 -0700)] 
Add missing dependency link for Notes to testACLMaxUserIP

10 years agoSourceFormat Enforcement
Automatic source maintenance [Tue, 29 Oct 2013 00:13:37 +0000 (18:13 -0600)] 
SourceFormat Enforcement

10 years agoReceive annotations from authentication helpers
Amos Jeffries [Sun, 27 Oct 2013 05:08:49 +0000 (22:08 -0700)] 
Receive annotations from authentication helpers

This saves the kv-pair from authentication helper responses as
annotations on the HttpRequest which was authenticated and pass
on from there to logging.

Added a method appendNewOnly() to ensure duplicate-free addition
to a NotePairs list.

Also, fixes a bug in hasPair() accessor which was returning true
if either the key OR the value matched.
ie. hasPair("a","1") would match true for notes "a=2 b=1"

10 years agoUpdate redirectStateData to full class RedirectStateData
Amos Jeffries [Sat, 26 Oct 2013 15:56:57 +0000 (08:56 -0700)] 
Update redirectStateData to full class RedirectStateData

- make CBDATA_CLASS2
- add constructor initialization
- convert URL data member to SBuf
- add stub file for redirect.h API

10 years agoRemoved unneeded libauth from ufsdump
Francesco Chemolli [Sun, 27 Oct 2013 22:29:52 +0000 (23:29 +0100)] 
Removed unneeded libauth from ufsdump

10 years agoCleanup SPONSORS.list indentation
Amos Jeffries [Sat, 26 Oct 2013 02:28:12 +0000 (19:28 -0700)] 
Cleanup SPONSORS.list indentation

10 years agoCleanup ASState
Amos Jeffries [Fri, 25 Oct 2013 19:07:30 +0000 (12:07 -0700)] 
Cleanup ASState

* convert from struct to class
 - moving initialization of members from transaction setup to ctor.

* implement with CBDATA_CLASS2 macro
 - removing uses of cbdataAlloc/cbdataFree and CBDATA_TYPE/CBDATA_INIT_TYPE

* set bool member dataRead using true/false instead of 0/1

* upgrade HttpRequest pointer member to Pointer type

10 years agoBetter fix for CBDATA type errors
Amos Jeffries [Sat, 26 Oct 2013 06:09:56 +0000 (00:09 -0600)] 
Better fix for CBDATA type errors

10 years agoFix cbdata 'error: expression result unused' errors
Amos Jeffries [Sat, 26 Oct 2013 02:16:10 +0000 (20:16 -0600)] 
Fix cbdata 'error: expression result unused' errors

Detected by Clang.

10 years agoAdded RackSpace to SPONSORS.list
Francesco Chemolli [Fri, 25 Oct 2013 13:10:13 +0000 (15:10 +0200)] 
Added RackSpace to SPONSORS.list