[Zope] Growing refcounts

Juan Carlos Coruņa jcoruna@euskalnet.net
Tue, 17 Apr 2001 20:31:03 +0200


Este es un mensaje multipartes en formato MIME.
--------------C478B1B66FEBF21EB0887C86
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Here is a functional extract you can import to reproduce the problem. I
have tested it before I sent it to you.
I have attached a very simple python script that calls the method "get2"
in an infinite loop.


--------------C478B1B66FEBF21EB0887C86
Content-Type: application/octet-stream;
 name="RPC2.zexp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="RPC2.zexp"

WkVYUAAAAAAAABrvAAAAAAAAAO8oKFUKT0ZTLkZvbGRlcnEBVQZGb2xkZXJxAnRxA050Ln1x
BChVDFF1ZXVlU2Vzc2lvbnEFKFUIAAAAAAAAGvRxBihoAVUGRm9sZGVycQd0dFFVAmlkcQhV
BFJQQzJxCVUSX19hY19sb2NhbF9yb2xlc19fcQp9cQtVB2pjb3J1bmFxDF1xDVUFT3duZXJx
DmFzVQZfb3duZXJxDyhdcRBVCWFjbF91c2Vyc3ERYWgMdHESVQhfb2JqZWN0c3ETKH1xFChV
CW1ldGFfdHlwZXEVVQZGb2xkZXJxFmgIaAV1dHEXVQV0aXRsZXEYVQB1LgAAAAAAABr0AAAA
AAAAAagoKFUKT0ZTLkZvbGRlcnEBVQZGb2xkZXJxAnRxA050Ln1xBChVAmlkcQVVDFF1ZXVl
U2Vzc2lvbnEGVRJfX2FjX2xvY2FsX3JvbGVzX19xB31xCFUHamNvcnVuYXEJXXEKVQVPd25l
cnELYXNVBm1heEdldHEMSwpVC19wcm9wZXJ0aWVzcQ0ofXEOKFUCaWRxD1UFdGl0bGVxEFUE
dHlwZXERVQZzdHJpbmdxEnV9cRMoaA9VBm1heEdldHEUaBFVA2ludHEVdXRVBGdldDJxFihV
CAAAAAAAABr5cRcoVSNQcm9kdWN0cy5QeXRob25TY3JpcHRzLlB5dGhvblNjcmlwdHEYVQxQ
eXRob25TY3JpcHRxGXR0UVU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1lc3E0KGNTaGFyZWQuREMuU2NyaXB0cy5CaW5kaW5n
cwpOYW1lQXNzaWdubWVudHMKcTVvcTZ9cTdVBl9hc2duc3E4fXE5KFUObmFtZV9jb250YWlu
ZXJxOlUJY29udGFpbmVycTtVDG5hbWVfc3VicGF0aHE8VRB0cmF2ZXJzZV9zdWJwYXRocT1V
C25hbWVfbV9zZWxmcT5VBnNjcmlwdHE/VQxuYW1lX2NvbnRleHRxQFUHY29udGV4dHFBdXNi
VQxQeXRob25fbWFnaWNxQlUEmU4NCnFDVQ1mdW5jX2RlZmF1bHRzcUROdS4AAAAAAAAa/gAA
AAAAAADMKChVCk9GUy5Gb2xkZXJxAVUGRm9sZGVycQJ0cQNOdC59cQQoVQJpZHEFVQZxdWV1
ZXNxBlUSX19hY19sb2NhbF9yb2xlc19fcQd9cQhVB2pjb3J1bmFxCV1xClUFT3duZXJxC2Fz
VQhfb2JqZWN0c3EMKH1xDShVCW1ldGFfdHlwZXEOVQZGb2xkZXJxD2gFVQR0ZXN0cRB1dFUE
dGVzdHERKFUIAAAAAAAAGwdxEihoAVUGRm9sZGVycRN0dFFVBXRpdGxlcRRVAHUuAAAAAAAA
GwcAAAAAAAAAfigoVQpPRlMuRm9sZGVycQFVBkZvbGRlcnECdHEDTnQufXEEKFUFdGl0bGVx
BVUAVQJpZHEGVQR0ZXN0cQdVEl9fYWNfbG9jYWxfcm9sZXNfX3EIfXEJVQdqY29ydW5hcQpd
cQtVBU93bmVycQxhc1UIX29iamVjdHNxDSl1Lv////////////////////8=
--------------C478B1B66FEBF21EB0887C86
Content-Type: text/plain; charset=us-ascii;
 name="test_get2.py"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="test_get2.py"

#!/usr/bin/python

import xmlrpclib

s = xmlrpclib.Server('http://localhost:9080/RPC2')

while 1:
    print s.QueueSession.get2()

--------------C478B1B66FEBF21EB0887C86--