How to modify limitRequestBody size via http, SmartFoxServer version is 2.15.0

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

JackPei
Posts: 2
Joined: 14 May 2020, 07:46

How to modify limitRequestBody size via http, SmartFoxServer version is 2.15.0

Postby JackPei » 15 May 2020, 02:13

SmartFoxServer: 2.15.0
Client: SmartFoxServer 2X HTML5/JavaScript API v1.7.13

When we sent a extension request with ByteArray size is 1000, request work fine via http. if ByteArray size is 10000, it doesn't work via http.

We try to increase maxIncomingRequestSize in core.xml and add apache-tomcat Connector arrtribute maxPostSiz -1, that does't take effect.


How to modify request body size ??
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to modify limitRequestBody size via http, SmartFoxServer version is 2.15.0

Postby Lapo » 15 May 2020, 07:09

Hi,
when you say it doesn't work what kind of error are you getting? Is it client side? Or server side?
Can you give us the details?

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23009
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to modify limitRequestBody size via http, SmartFoxServer version is 2.15.0

Postby Lapo » 15 May 2020, 14:52

UPDATE: we have tested the scenario you have described by sending a large binary packet via Websocket and found a similar problem at around 8K. It seems that Tomcat's default buffer size is indeed 8K so it will fail to send or receive larger packets.

Since we're going to release a new update very shortly we will include the fix in the new release, version 2.16.0
I will post a message when the update goes live. It should be either tomorrow or next Monday.

Hope it helps
Lapo

--

gotoAndPlay()

...addicted to flash games
JackPei
Posts: 2
Joined: 14 May 2020, 07:46

Re: How to modify limitRequestBody size via http, SmartFoxServer version is 2.15.0

Postby JackPei » 18 May 2020, 03:26

Lapo wrote:UPDATE: we have tested the scenario you have described by sending a large binary packet via Websocket and found a similar problem at around 8K. It seems that Tomcat's default buffer size is indeed 8K so it will fail to send or receive larger packets.

Since we're going to release a new update very shortly we will include the fix in the new release, version 2.16.0
I will post a message when the update goes live. It should be either tomorrow or next Monday.

Hope it helps


thanks, Lapo

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 42 guests