[Seaside] Re: error uploading file

Esteban Lorenzano estebanlm at gmail.com
Thu Dec 9 21:31:23 UTC 2010


Hi,
ok, I tried that, and adding that to streamUploads: *seems* to be working now :)

thanks a lot!

Esteban

El 08/12/2010, a las 10:13a.m., Bob Arning escribió:

> 
> On 12/8/10 1:00 AM, Philippe Marschall wrote:
>> Somehow #upToAll:bufferSize:do: sends #nextInBuffer: to self with an
>> argument of -19.
> This method does not seem happy when the buffer contents are shorter than the search string. If you change...
> 
>    index = 0 ifTrue: [
>        aBlock value: (self nextInBuffer: (searchedSoFar - sz)) ].
>    ].
> 
> to...
> 
>    (index = 0 and: [searchedSoFar > sz]) ifTrue: [
>        aBlock value: (self nextInBuffer: (searchedSoFar - sz)) ].
>    ].
> 
> it might be happier.
> 
> It's also interesting that...
> 
>        searchedSoFar:     23
>        insz:     23
> 
> when this...
> 
>        inNextToWrite:     1411
>        outNextToWrite:     1
>        lastRead:     1368
> 
> would argue for 42 rather than 23. Makes me wonder if something caused socket stream to read the rest of the data *after* the error occurred.
> 
> Cheers,
> Bob
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



More information about the seaside mailing list