emre
Posts: 3
Joined: Mon Jan 24, 2022 5:26 am

How to set a response buffer limit for a IIS handler?

Mon Jan 24, 2022 6:43 am

Hi,

I am using Advanced Installer 19.0. We are trying to set a response buffer limit for the PHP handler. I use it through FastCGI. On IIS Manager, I can modify this value using the configuration editor as the following image.
confeditor.png
confeditor.png (56.82KiB)Viewed 3112 times
colleditor.png
colleditor.png (113.49KiB)Viewed 3112 times
I tried to set it using a custom action by running

Code: Select all

appcmd.exe set config "WebsiteName" -section:system.webServer/handlers /[name='HandlerName'].responseBufferLimit:"0" 
The problem is, when we define a handler using Advanced Installer's Application Mapping window, we can not define a name for the handler, and there is no variable to hold the handler name that defined by Advanced Installer. So it didn't solve the problem. And I am not editing a property, I am editing a collection item property, so I can not use Advanced Installer's custom properties feature. Can you recommend a workaround or solution to set the response buffer limit? Thank you.

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: How to set a response buffer limit for a IIS handler?

Fri Jan 28, 2022 12:09 pm

Hello and welcome to our forums,

I am not quite sure I fully understand your scenario.

Could you please try to follow the steps presented in the screenshots below and let me know if that helps?
image.png
image.png (88.65KiB)Viewed 3071 times
image (1).png
image (1).png (113.57KiB)Viewed 3071 times


Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

emre
Posts: 3
Joined: Mon Jan 24, 2022 5:26 am

Re: How to set a response buffer limit for a IIS handler?

Sun Jan 30, 2022 5:07 pm

Hi,

To summarize things, I can not modify the value of the responseBufferLimit when I create a new application mapping on Advanced Installer. It would be awesome if we could modify it using this window:
Screenshot 2022-01-31 010444.png
Screenshot 2022-01-31 010444.png (45.88KiB)Viewed 3058 times

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: How to set a response buffer limit for a IIS handler?

Wed Feb 02, 2022 2:57 pm

Hello Emre,

Thank you for your explanation.

I have discussed with our developer and your request is indeed valid.

I will add it on our TODO list of improvements and hopefully it will be available in a future version of Advanced Installer.

Until then, here would be a workaround for your scenario:

Basically, when a new Application Mapping is created, we automatically name it according to the following logic:

Code: Select all

CustomMapping-[extension]
In your case, that would be:

Code: Select all

CustomMapping-php
If more mappings are created for the same extension, we add numbers to it, so the name is unique, e.g.:

Code: Select all

CustomMapping0-php
CustomMapping1-php
etc.
With that being said, the workaround for you would be calling the appcmd.exe, as it follows:

Code: Select all

appcmd.exe set config "MyPhpTrial" -section:system.webServer/handlers /[name='CustomMapping-php'].responseBufferLimit:"1234"
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

emre
Posts: 3
Joined: Mon Jan 24, 2022 5:26 am

Re: How to set a response buffer limit for a IIS handler?

Thu Feb 03, 2022 3:41 am

Hi,

Sounds great, this approach will solve my problem. Thank you for the feedback and your time!

Catalin
Posts: 6537
Joined: Wed Jun 13, 2018 7:49 am

Re: How to set a response buffer limit for a IIS handler?

Thu Feb 03, 2022 5:26 pm

You are always welcome!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”