Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zircon
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
zircon
Commits
e0957a79
Commit
e0957a79
authored
10 years ago
by
Michael Gray
Browse files
Options
Downloads
Patches
Plain Diff
Tidy up in Z:Context, avoiding potential callback circular references with Connection.
parent
91d69346
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/Zircon/Connection.pm
+9
-0
9 additions, 0 deletions
lib/Zircon/Connection.pm
lib/Zircon/Context/ZMQ.pm
+9
-0
9 additions, 0 deletions
lib/Zircon/Context/ZMQ.pm
lib/Zircon/Protocol.pm
+1
-0
1 addition, 0 deletions
lib/Zircon/Protocol.pm
with
19 additions
and
0 deletions
lib/Zircon/Connection.pm
+
9
−
0
View file @
e0957a79
...
...
@@ -80,6 +80,14 @@ sub init {
return
;
}
sub
close
{
my
(
$self
)
=
@_
;
$self
->
zircon_trace
;
$self
->
context
->
close
if
(
$self
->
context
);
delete
$self
->
{'
context
'};
return
;
}
# client
sub
send
{
...
...
@@ -297,6 +305,7 @@ sub state {
sub
DESTROY
{
my
(
$self
)
=
@_
;
$self
->
zircon_trace
('
%s
',
$self
);
$self
->
close
if
$self
->
context
;
return
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/Zircon/Context/ZMQ.pm
+
9
−
0
View file @
e0957a79
...
...
@@ -77,6 +77,14 @@ sub transport_init {
return
;
}
sub
close
{
my
(
$self
)
=
@_
;
$self
->
zircon_trace
;
$self
->
_request_callback
(
undef
);
$self
->
_after_request_callback
(
undef
);
return
;
}
sub
_send_msg
{
my
(
$self
,
$msg
,
$socket
,
$flags
)
=
@_
;
...
...
@@ -628,6 +636,7 @@ sub disconnect {
sub
DESTROY
{
my
(
$self
)
=
@_
;
$self
->
zircon_trace
('
%s
',
$self
);
$self
->
close
;
$self
->
disconnect
;
return
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/Zircon/Protocol.pm
+
1
−
0
View file @
e0957a79
...
...
@@ -313,6 +313,7 @@ sub close {
my
(
$self
)
=
@_
;
$self
->
zircon_trace
;
$self
->
callback
(
undef
);
$self
->
connection
->
close
if
$self
->
connection
;
delete
$self
->
{'
connection
'};
$self
->
{'
is_open
'}
=
0
;
return
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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