[UPDATE] Patch 1.5.9 available!

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

[UPDATE] Patch 1.5.9 available!

Post by Lapo »

Hello,
we've released a new patch for SmartFoxServer PRO which introduces some important bug-fixes and performance improvements. The patch has been heavily tested with the latest Java Runtime 6 showing outstanding performance and reliability!

The benchmark test results are available in this white paper

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

Release notes:

Post by Lapo »

Release notes:

Code: Select all

-> Fixed NoSuchElementException thrown by the ConnectionCleaner task
-> Fixed a thread concurrency issue in the ConnectionCleaner
-> Improved overall ConnectionCleaner performance
-> Fixed a small bug in the script extension file names ( http://forums.smartfoxserver.com/viewtopic.php?p=6790#6790 )
-> Added better checks for invalid channel keys returned by selector (EventReader)
-> New settings for handling dropped messages. (see below)
-> Minor server core refactorings improve overall throughput and performance
-> new getDroppedPackets() method in User class. Returns the number of packets dropped by the client.
-> new event-name constants added to the InternalEventbject class:
		EVENT_LOGIN
		EVENT_LOGOUT
		EVENT_JOIN
		EVENT_USER_EXIT
		EVENT_USER_LOST
		EVENT_SPECTATOR_SWITCHED
		EVENT_NEW_ROOM
		EVENT_ROOM_LOST
		EVENT_PUBLIC_MESSAGE
		EVENT_PRIVATE_MESSAGE
		EVENT_FILE_UPLOAD
Notes for users installing on 1.5.5:
- It is recommended to download and apply both patches (1.5.8c and 1.5.9) if your server versions is 1.5.5
- You can skip copying the jysfs.jar coming with version 1.5.8 and just use the one coming with 1.5.9
Last edited by Lapo on 26 Sep 2007, 04:34, edited 1 time in total.
Lapo
--
gotoAndPlay()
...addicted to flash games
didibus
Posts: 34
Joined: 09 Sep 2007, 19:31

Post by didibus »

Just a little question about applying patches. Must I do them all in order, or can I just patch with the latest patch?

Thanx
TaiPan
Posts: 3
Joined: 10 Sep 2007, 23:53
Location: Arizona, USA, NA

Post by TaiPan »

Good question. :)

Interested in reviewing past patch notes to see what features have been added since 1.5.5 which is the release I am currently using. I am pretty sure this is the first patch information I have seen since i started testing this software.

Is there an archive on the site where patches and patch notes are available besides using the search feature on the forums? ;)
- TaiPan
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Thanks for pointing it out!
We've updated the download page with the available patches.
http://www.smartfoxserver.com/products/ ... #downloads

Notes for users installing on 1.5.5:
- It is recommended to download and apply both patches (1.5.8c and 1.5.9) if your server versions is 1.5.5
- You can skip copying the jysfs.jar coming with version 1.5.8 and just use the one coming with 1.5.9
Lapo
--
gotoAndPlay()
...addicted to flash games
piser
Posts: 51
Joined: 26 Apr 2007, 08:22
Location: Poland
Contact:

Post by piser »

Well this patch works ok on my old code, however as I good read Lapo info

my old code:

Code: Select all

function handleInternalEvent(evt) {
    if(evt.name == "loginRequest") {
should looks now this:

Code: Select all

function handleInternalEvent(evt) {
    if(evt.name == "EVENT_LOGIN") {
??
piser
Posts: 51
Joined: 26 Apr 2007, 08:22
Location: Poland
Contact:

Post by piser »

btw.
I getting this error while posting replys
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

piser wrote:Well this patch works ok on my old code, however as I good read Lapo info

my old code:

Code: Select all

function handleInternalEvent(evt) {
    if(evt.name == "loginRequest") {
should looks now this:

Code: Select all

function handleInternalEvent(evt) {
    if(evt.name == "EVENT_LOGIN") {
??
No. This is the right way:

Code: Select all

function handleInternalEvent(evt) {
    if(evt.name == InternalEventObject.EVENT_LOGIN) {
where InternalEventObject.EVENT_LOGIN is a string equals to "loginRequest". This is why your code still works.
Paolo Bax
The SmartFoxServer Team
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

Piser, those constants where introduced in the Java extension framework extension, so you might ignore that bit of info if you're using Actionscript.

Alternatively, if you want to access them you'll have to do as Bax suggested, but in order to make it work you'll have to import the InternalEventObject in your script.

Example:

Code: Select all

var _events = Packages.it.gotoandplay.smartfoxserver.events

if (evt.name == _events.InternalEventObject.EVENT_LOGIN)
{
    // your code here
}
HTH
Lapo
--
gotoAndPlay()
...addicted to flash games
piser
Posts: 51
Joined: 26 Apr 2007, 08:22
Location: Poland
Contact:

Post by piser »

ok i will try to do this.
thanks
darnpunk
Posts: 229
Joined: 22 Jun 2007, 02:58
Location: SG

Post by darnpunk »

Are there any updated docs for the new features added by the patch?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

This is a maintenance patch, so as you can read from the release notes there aren't major new features :)
We addressed several bugs, enhanced performance and added a few minor options.
Lapo
--
gotoAndPlay()
...addicted to flash games
darnpunk
Posts: 229
Joined: 22 Jun 2007, 02:58
Location: SG

Post by darnpunk »

Thanks :)
patso
Posts: 380
Joined: 13 Nov 2006, 13:44
Location: Sofia, Bulgaria

Post by patso »

Hmm "New settings for handling dropped messages" - this looks like pretty new (and very cool) feature :wink:
Dr_Malito
Posts: 18
Joined: 13 Dec 2006, 20:52
Location: Chile
Contact:

Post by Dr_Malito »

we love you lapo!
Post Reply