Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sjrpc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor 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
Mirror
sjrpc
Commits
8bbae06a
Commit
8bbae06a
authored
14 years ago
by
Antoine Millet
Browse files
Options
Downloads
Patches
Plain Diff
Removed use of uuid1 (leak open fd).
parent
9cfa4e80
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
sjrpc/core/rpcconnection.py
+2
-2
2 additions, 2 deletions
sjrpc/core/rpcconnection.py
with
2 additions
and
2 deletions
sjrpc/core/rpcconnection.py
+
2
−
2
View file @
8bbae06a
...
...
@@ -12,7 +12,7 @@ import struct
import
socket
import
logging
import
threading
from
uuid
import
uuid
1
from
uuid
import
uuid
4
from
Queue
import
Queue
from
sjrpc.utils
import
BytesBuffer
...
...
@@ -186,7 +186,7 @@ class RpcConnection(object):
msg
[
'
method
'
]
=
method_name
msg
[
'
args
'
]
=
args
msg
[
'
kwargs
'
]
=
kwargs
msg
[
'
id
'
]
=
str
(
uuid
1
())
msg
[
'
id
'
]
=
str
(
uuid
4
())
self
.
_send
(
msg
)
...
...
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