Luca Dionisi ha scritto:
Hi jnz_
As you told me, the problem is _data_unpack_from_stream_socket, which
receives from socket something pretty different from what was being
sent. Then, the struct.unpack method evaluates to a huge number.
The problem is not the memory error. It is the wrong communication. So
it is not solved by a netkit instance with more RAM.
Yes, right. Note that if you this happen only with the second common
client launch, I mean that in this way:
for i in xrange(times):
print 'launch a unique client'
unique_client()
print 'launch a msg from common client'
common_client()
print 'launch a unique client'
unique_client()
xtime.swait(1000) # I'm waiting that the other side receive all data
sent?
print 'launch a msg from common client'
common_client()
everything works well. So the socket need a slice time to receive
correctly. Maybe we must review the stacklesssocket code (expecially
something relative the communication through channels).
IMPORTANT: pyntk must be embeddable, so must work with the minimum
amount of memory.
Francesco
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku