Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirror
sjrpc
Commits
8bbae06a
Commit
8bbae06a
authored
Feb 01, 2011
by
Antoine Millet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed use of uuid1 (leak open fd).
parent
9cfa4e80
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sjrpc/core/rpcconnection.py
sjrpc/core/rpcconnection.py
+2
-2
No files found.
sjrpc/core/rpcconnection.py
View file @
8bbae06a
...
@@ -12,7 +12,7 @@ import struct
...
@@ -12,7 +12,7 @@ import struct
import
socket
import
socket
import
logging
import
logging
import
threading
import
threading
from
uuid
import
uuid
1
from
uuid
import
uuid
4
from
Queue
import
Queue
from
Queue
import
Queue
from
sjrpc.utils
import
BytesBuffer
from
sjrpc.utils
import
BytesBuffer
...
@@ -186,7 +186,7 @@ class RpcConnection(object):
...
@@ -186,7 +186,7 @@ class RpcConnection(object):
msg
[
'method'
]
=
method_name
msg
[
'method'
]
=
method_name
msg
[
'args'
]
=
args
msg
[
'args'
]
=
args
msg
[
'kwargs'
]
=
kwargs
msg
[
'kwargs'
]
=
kwargs
msg
[
'id'
]
=
str
(
uuid
1
())
msg
[
'id'
]
=
str
(
uuid
4
())
self
.
_send
(
msg
)
self
.
_send
(
msg
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment