Re: ZINC - Kom dilemma Fwd: WADebugErrorHandler problem

Sven Van Caekenberghe <[email protected]>
Newsgroups gmane.comp.lang.smalltalk.squeak.seaside
Message-ID <[email protected]>
> On 18 Jan 2016, at 13:17, Robert Kuszinger <[email protected]> wrote:
> 
> Sven,
> 
> thanks for the tip. Actually the UTF problem won't appear with Zinc but I also need to do large file uploads. Zinc resets connection somewhere between 10-19 MB File size. Is there a built-in limitation?

Yes, one of several used by Zn to protect itself from resource abuse (DOS). The default limit is 16Mb.

> Anyway, an idea on how to break through this limit may also help. I need to upload 150-300 MB files regulary with this service. KomHttp did it out-of-the-box.

The limit you are running into is called #maximumEntitySize and can be set with ZnServer>>#maximumEntitySize: - The default limit is 16Mb.

Given an adaptor instance, you can access the server using #server.

So together this would be

  ZnZincServerAdaptor default server maximumEntitySize: 300*1024*1024.

Technically, it would be possible to write a Zn handler that can accept a large upload in a streaming fashion (and save it to a file for example), but I don't think that will happen with Seaside - so you will pull that all in memory.

Let me know how that goes.

> thanks
> Robert
> 
> 
> 2016-01-18 12:45 GMT+01:00 Sven Van Caekenberghe <[email protected]>:
> Robert,
> 
> If you are using Pharo, it seems more logical that you would use ZnZincServerAdaptor.
> 
> But of course, it might not necessarily have to do with the adaptor.
> 
> HTH,
> 
> Sven
> 
> _______________________________________________
> seaside mailing list
> [email protected]
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.