Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response refactor works #223

Open
wants to merge 47 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
b68cfb9
Move HTTP code to new subdir http_dap as convenience lib
jgallagher59701 Feb 13, 2023
15cdc0f
WIP
jgallagher59701 Feb 14, 2023
141f0ae
WIP - almost passes tests - add new lib to test clients
jgallagher59701 Feb 14, 2023
ee93323
Tests pass
jgallagher59701 Feb 14, 2023
11657e5
Minor improvements to HTTPCacheTest.cc
jgallagher59701 Feb 14, 2023
33d7478
autoconf 2.69 required - was 2.71
jgallagher59701 Feb 14, 2023
ca0e16d
WIP
jgallagher59701 Feb 14, 2023
91b8450
WIP
jgallagher59701 Feb 15, 2023
946fdfa
Use <cstring> for strerror()
jgallagher59701 Feb 15, 2023
296684e
distcheck builds locally
jgallagher59701 Feb 15, 2023
22b78c7
Scan fixes; other fixes
jgallagher59701 Feb 15, 2023
4745fde
Memory leak fixed in Response/HTTPResponse
jgallagher59701 Feb 15, 2023
311c132
WIP; passes tests
jgallagher59701 Feb 15, 2023
54b7a73
Remove http_dap/unit-tests/cache-testsuite/cleanup.sh; generated
jgallagher59701 Feb 16, 2023
004087a
Removed most (all?) of the pthreads code in HTTPCache
jgallagher59701 Feb 16, 2023
8fc5b31
REmoved pthreads from the cache code
jgallagher59701 Feb 16, 2023
8044577
Change the initialization of the 'readers' atomic
jgallagher59701 Feb 16, 2023
a301205
More work on the mutex code
jgallagher59701 Feb 16, 2023
7b3ffab
Removed delete_instance
jgallagher59701 Feb 16, 2023
a440373
Removed HTTPCacheInterruptHandler.h
jgallagher59701 Feb 17, 2023
707858a
WIP - won't build
jgallagher59701 Feb 17, 2023
852f5d4
WIP; still not quite building
jgallagher59701 Feb 17, 2023
c162f68
The cache table is now a vector of vector of CacheEntry pointers
jgallagher59701 Feb 17, 2023
d4e67ee
Cleanup the HTTPCacheTable code
jgallagher59701 Feb 17, 2023
a835760
Copy BESFileLockingCache code in http_dap so we can reuse as much as …
jgallagher59701 Feb 18, 2023
6c4c1df
Added multi-process locking code (but not it's use everywhere). WIP
jgallagher59701 Feb 18, 2023
2d96e47
Added use of cache-level multi-process read and write locks
jgallagher59701 Feb 19, 2023
1f804f2
More updates to the multi-process cache locking and a fix for the ent…
jgallagher59701 Feb 19, 2023
b683f03
cleanup - better RAII for the MP cache lock. No RAII for CacheEntry
jgallagher59701 Feb 19, 2023
cb2ae07
Fixing tests - HTTPCacheTest leave a dir in /tmp. WIP
jgallagher59701 Feb 19, 2023
c5adc8d
Improved directory cleanup in HTTPCacheTest. More clean up to do...
jgallagher59701 Feb 19, 2023
21b6499
Linux fixes
jgallagher59701 Feb 20, 2023
43e8ad0
Fixes for Linux; other fixes
jgallagher59701 Feb 20, 2023
70a4ee1
Added to gitignore for the new http_dap directory
jgallagher59701 Feb 21, 2023
4774492
Ready to test HTTPConnect for MT/MP operation
jgallagher59701 Feb 21, 2023
bfe2d86
Added a MultiThreaded test - WIP
jgallagher59701 Feb 22, 2023
97c8210
Added multi-threaded tests of HTTPConnect (and thus HTTPCache). WIP.
jgallagher59701 Feb 23, 2023
fba123f
Macro fix for VERBOSE_RUNTIME() in HTTPConnect.cc
jgallagher59701 Feb 23, 2023
3680742
Added better error reporting to HTTPConnectTest
jgallagher59701 Feb 23, 2023
825b476
Addressed issues when HTTPConnectTest and HTTPConnectMTTest run in pa…
jgallagher59701 Feb 23, 2023
f3d0c7b
MT tests work; headers cleaned up
jgallagher59701 Feb 24, 2023
fa3188a
Added a test for 302 redirects to the HTTP cache
jgallagher59701 Feb 24, 2023
ee9bc97
Added the MP lock guard RAII class. Not used, but potentially useful.
jgallagher59701 Mar 18, 2023
71e9460
hacking to make distcheck work - WIP.
jgallagher59701 Mar 20, 2023
bcbc773
Added parallel_tests.sh
jgallagher59701 Mar 20, 2023
78eae7a
Fixes distcheck on my local system
jgallagher59701 Mar 21, 2023
6af5f80
Removed unused fils and edited comments in one file.
jgallagher59701 Mar 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ tmp
libdap_VERSION
libdap.spec

libdap4-autotest-*

# CLion CMake directory; might make this visible later on... jhrg 2/8/17
cmake-build-*

Expand Down Expand Up @@ -102,6 +104,17 @@ d4_function/location.hh
d4_function/position.hh
d4_function/stack.hh

http_dap/unit-tests/HTTPCacheTest
http_dap/unit-tests/HTTPConnectTest
http_dap/unit-tests/test_config.h

http_dap/unit-tests/cache-testsuite/cleanup.sh
http_dap/unit-tests/cache-testsuite/dods_cache/
http_dap/unit-tests/cache-testsuite/gc_cache/
http_dap/unit-tests/cache-testsuite/header_cache/
http_dap/unit-tests/cache-testsuite/purge_cache/
http_dap/unit-tests/cache-testsuite/singleton_cache/

libdap-*.tar.gz
libdap-*

Expand Down
3 changes: 2 additions & 1 deletion Connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@
#include "DataDDS.h"
#include "Connect.h"
#include "escaping.h"
//#include "RCReader.h"
#include "HTTPResponse.h"
#include "RCReader.h"
#include "DDXParserSAX2.h"
#if FILE_UN_MARSHALLER
#include "XDRFileUnMarshaller.h"
Expand Down
2 changes: 2 additions & 0 deletions D4Connect.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
#include "D4Connect.h"
#include "HTTPConnect.h"
#include "Response.h"
#include "HTTPResponse.h"
#include "RCReader.h"
#include "DMR.h"
#include "D4Group.h"

Expand Down
244 changes: 0 additions & 244 deletions HTTPCache.h

This file was deleted.

71 changes: 0 additions & 71 deletions HTTPCacheMacros.h

This file was deleted.

Loading