Skip to content

Commit 2a8f6ed

Browse files
committed
Updated driver to set clientHost and clientProcessId
1 parent 9088573 commit 2a8f6ed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pynuodb/connection.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
from .encodedsession import EncodedSession
1414
from .crypt import ClientPassword, RC4Cipher
1515
from .util import getCloudEntry
16+
from os import getpid
1617

18+
import platform
1719
import time
1820

1921
apilevel = "2.0"
@@ -96,6 +98,9 @@ def __init__(self, dbName, broker, username, password, options):
9698
if 'cipher' in options and options['cipher'] == 'None':
9799
self.__session.set_encryption(False)
98100

101+
parameters['clientProcessId'] = str(getpid())
102+
parameters['clientHost'] = platform.node()
103+
99104
version, serverKey, salt = self.__session.open_database(dbName, parameters, cp)
100105

101106
sessionKey = cp.computeSessionKey(username.upper(), password, salt, serverKey)

0 commit comments

Comments
 (0)