Ok, this is the test: code:
tempo = Timer() WRITE #LAST, b, Len(b) WAIT pausa tempo = Timer() - tempo ' tempo di esecuzione della WRITE in s PRINT tempo where: pausa= 1/5 s = 0.20 then max transer rate is 5 kb/s wget wget --limit-rate=1k This is (part of) the output: 0,201111000031 0,200164000038 0,201022999943 0,200060999952 0,200853000046 0,200880000019 0,200077999965 0,20179099997 0,200198000064 0,200914000045 0,200661999988 0,200634000008 0,200996999978 0,201053999946 0,200861999998 0,201049000025 0,201187000028 <======= here the gui freeze but wget works fine 33,657490000012 0,202386999968 0,201863000053 0,20033500006 0,200777000049 0,200406999909 0,207185000065 0,200213000062 0,200879000011 0,201100000064 0,200895999908 0,218144000042 Whit this code (and the same parameters): tempo = Timer() WRITE #LAST, b, Len(b) tempo = Timer() - tempo ' tempo di esecuzione della WRITE in s PRINT tempo WAIT pausa the output is: 2,199993468821E-5 2,899998798966E-5 2,899998798966E-5 2,29999423027E-5 2,300005871803E-5 2,999999560416E-5 2,29999423027E-5 2,300005871803E-5 2,300005871803E-5 2,300005871803E-5 2,200005110353E-5 1,999991945922E-5 <======== here the gui freeze 33,400989999995 2,799998037517E-5 2,199993468821E-5 2,199993468821E-5 2,199993468821E-5 So I think that i can adjust the pause only after first freeze and i can't calculate the real transfer rate well. Any idea? I think that WRITE has a its own buffer: when the buffer is full then WRITE take 33 seconds. If it is so, how much big is this buffer? Thank you -- View this message in context: http://www.nabble.com/server-socket-problem-tp23697722p23699326.html Sent from the gambas-user mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://www.creativitycat.com _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user