Hello!
in Flash API trace("max message size = " + sfs.maxMessageSize);
displayed:
max message size = 10000
So please tell me how can I change this value (on a server side I guess)?
Cause I need to send swf files from an extension to client much bigger then 10000 bytes...
Thanks!
MaxMessageSize
-
itsmylifesoham
- Posts: 186
- Joined: 16 Oct 2011, 14:33
Re: MaxMessageSize
hi,
i would like to make a point here.
please do not send such huge files from the extension! that way you are transaferring a huge message using the smartfox socket server.
please use your http server to deliver the client these swf files.
for eg: from your extension just send a message to client which contains the path of swf it should load.
let the client load that path over http inside their parent swf or something else.
i would like to make a point here.
please do not send such huge files from the extension! that way you are transaferring a huge message using the smartfox socket server.
please use your http server to deliver the client these swf files.
for eg: from your extension just send a message to client which contains the path of swf it should load.
let the client load that path over http inside their parent swf or something else.
Re: MaxMessageSize
All I need - is to send swf files from extension to client around 200-300kb size.
Is this so critical size that makes me to deploy a http server?
I thought that Byte Arrays was designed especially for this task.
Is this so critical size that makes me to deploy a http server?
I thought that Byte Arrays was designed especially for this task.
-
itsmylifesoham
- Posts: 186
- Joined: 16 Oct 2011, 14:33
Re: MaxMessageSize
thats too huge , and will degrade your sfs server performance.
in one of bax's posts he clearly mentions this. the guy was trying to send 20 files of 30kb each and was complaining about dropped message problem. only 2 files were getting sent and none other. what bax said was that this is a big file size for socket server , http server is made for this purpose, and it makes sense to use http server for 200 -300 kb file size.
in one of bax's posts he clearly mentions this. the guy was trying to send 20 files of 30kb each and was complaining about dropped message problem. only 2 files were getting sent and none other. what bax said was that this is a big file size for socket server , http server is made for this purpose, and it makes sense to use http server for 200 -300 kb file size.
Re: MaxMessageSize
Any comments from admins?
Cause in SFS2x docs mentioned :
***************************************
Byte Arrays
One special mention should go to the ByteArray type which provides a mean of transferring binary data to and from the server. This could be used to transfer small files, images, media files, encrypted data, etc. For example Flash developers could improve the security of their application by sending external SWF files via the socket which would go undetected when spying the HTTP traffic.
********************************
So this is EXACTLY what i want! To send some SMALL amount of files of SMALL size from server extension to client avoid deploying and using some third party servers such as http.
So, can I use this feature or not??
Cause in SFS2x docs mentioned :
***************************************
Byte Arrays
One special mention should go to the ByteArray type which provides a mean of transferring binary data to and from the server. This could be used to transfer small files, images, media files, encrypted data, etc. For example Flash developers could improve the security of their application by sending external SWF files via the socket which would go undetected when spying the HTTP traffic.
********************************
So this is EXACTLY what i want! To send some SMALL amount of files of SMALL size from server extension to client avoid deploying and using some third party servers such as http.
So, can I use this feature or not??
Re: MaxMessageSize
You can open the config/core.xml file and modify the size under the <maxIncomingRequestSize> tag.
If you plan to transfer lots of small files from the SFS sockets under a high traffic scenario (thousands of clients) I'd recommend using HTTP.
There's no need to deploy any http server because SFS2X already embed the excellent Jetty HTTP server.All I need - is to send swf files from extension to client around 200-300kb size.
Is this so critical size that makes me to deploy a http server?
If you plan to transfer lots of small files from the SFS sockets under a high traffic scenario (thousands of clients) I'd recommend using HTTP.