Page 1 of 1
[UPDATE] Patch 1.5.9 available!
Posted: 25 Sep 2007, 17:17
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
Release notes:
Posted: 25 Sep 2007, 17:18
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
Posted: 25 Sep 2007, 21:27
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
Posted: 25 Sep 2007, 23:36
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?

Posted: 26 Sep 2007, 04:33
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
Posted: 26 Sep 2007, 07:43
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") {
??
Posted: 26 Sep 2007, 07:44
by piser
btw.
I getting
this error while posting replys
Posted: 26 Sep 2007, 09:01
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.
Posted: 26 Sep 2007, 09:56
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
Posted: 26 Sep 2007, 13:04
by piser
ok i will try to do this.
thanks
Posted: 28 Sep 2007, 01:05
by darnpunk
Are there any updated docs for the new features added by the patch?
Posted: 28 Sep 2007, 17:12
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.
Posted: 29 Sep 2007, 01:17
by darnpunk
Thanks

Posted: 30 Sep 2007, 09:07
by patso
Hmm "New settings for handling dropped messages" - this looks like pretty new (and very cool) feature

Posted: 02 Oct 2007, 19:05
by Dr_Malito
we love you lapo!