From 8bbae06a2c68c66066598865aa01bec9fbf80acd Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Tue, 1 Feb 2011 12:48:32 +0100 Subject: [PATCH] Removed use of uuid1 (leak open fd). --- sjrpc/core/rpcconnection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sjrpc/core/rpcconnection.py b/sjrpc/core/rpcconnection.py index ccb178c..cf9153b 100644 --- a/sjrpc/core/rpcconnection.py +++ b/sjrpc/core/rpcconnection.py @@ -12,7 +12,7 @@ import struct import socket import logging import threading -from uuid import uuid1 +from uuid import uuid4 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(uuid1()) + msg['id'] = str(uuid4()) self._send(msg) -- GitLab