Commit 8bbae06a authored by Antoine Millet's avatar Antoine Millet
Browse files

Removed use of uuid1 (leak open fd).

parent 9cfa4e80
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)