Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
f55c166c
Commit
f55c166c
authored
15 years ago
by
Giuseppe Lo Presti
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes
parent
972da444
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
castor/server/TCPListenerThreadPool.cpp
+1
-2
1 addition, 2 deletions
castor/server/TCPListenerThreadPool.cpp
castor/server/UDPListenerThreadPool.cpp
+3
-3
3 additions, 3 deletions
castor/server/UDPListenerThreadPool.cpp
with
4 additions
and
5 deletions
castor/server/TCPListenerThreadPool.cpp
+
1
−
2
View file @
f55c166c
...
...
@@ -113,6 +113,5 @@ void castor::server::TCPListenerThreadPool::terminate(void* param) {
// Here a proper implementation is to answer the client to try again later on.
// As the standard castor clients have no retry mechanism, we simply close the
// connection, which will make them fail (the process would have failed anyway).
s
->
close
();
delete
s
;
delete
s
;
// internally calls close
}
This diff is collapsed.
Click to expand it.
castor/server/UDPListenerThreadPool.cpp
+
3
−
3
View file @
f55c166c
...
...
@@ -87,8 +87,8 @@ void castor::server::UDPListenerThreadPool::listenLoop() {
// terminate
//------------------------------------------------------------------------------
void
castor
::
server
::
UDPListenerThreadPool
::
terminate
(
void
*
param
)
{
castor
::
IObject
*
obj
=
(
castor
::
IObject
*
)
param
;
// UDP is best-effort, don't bother contacting the client but free allocated memory
delete
obj
;
castor
::
IObject
*
obj
=
(
castor
::
IObject
*
)
param
;
// UDP is best-effort, don't bother contacting the client but free allocated memory
delete
obj
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment