Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 09-30-2004
victorchan victorchan is offline
Registered User
 
 
Join Date: Sep 2004
Posts: 4
compress?

Hi all ,
I am going to compress data transmit between sever and client .
I had set "-z" on each endpoints.

But I don't know why it dosen't take any effect.
Data size number in network trace is same as before.

Is my setting wrong?

here is my config

#
# The client reads this property to create the reference to the
# "hello" object in the server.
#

Ice.Default.Locator=IcePack/Locator:default -h victorchan -p 10000 -z

Hello.Proxy=hello:tcp -p 10000 -h victorchan -z

#
# The server creates one single object adapter with the name
# "helloadapater". The following line sets the endpoints for this
# adapter
#
Hello.Endpoints=tcp -p 10000 -h victorchan -z:udp -p 10000 -h victorchan -z
#
# Warn about connection exceptions
#
Ice.Warn.Connections=1

#
# Network Tracing
#
# 0 = no network tracing
# 1 = trace connection establishment and closure
# 2 = like 1, but more detailed
# 3 = like 2, but also trace data transfer
#
Ice.Trace.Network=3

#
# Protocol Tracing
#
# 0 = no protocol tracing
# 1 = trace protocol messages
#
Ice.Trace.Protocol=0

Ice.MessageSizeMax=1024000

#
# Security Tracing
#
# 0 = no security tracing
# 1 = trace warning messages
# 2 = config file parsing warnings
#
#Ice.Trace.Security=2

#
# Glacier settings
#
Glacier.Router.Endpoints=default -p 10005 -h victorchan -z
Glacier.Router.Client.Endpoints=tcp -z:udp -h victorchan -z
Glacier.Router.Trace.Client=2
Glacier.Router.Trace.RoutingTable=1

#
# Uncomment the following lines if you want to run this demo with Glacier
#
#Ice.Default.Router=Glacier/router:default -p 10005

Can any one tell me what i need to do in order to compress all data in transmission?
Reply With Quote
  #2 (permalink)  
Old 09-30-2004
marc's Avatar
marc marc is offline
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,781
The configuration seems correct. Can you post a sample of the log output? Note that short messages (< 100 bytes) are never compressed, because the compressed message would be larger than the uncompressed one.
Reply With Quote
  #3 (permalink)  
Old 09-30-2004
michi's Avatar
michi michi is offline
ZeroC Staff
 
Name: Michi Henning
Organization: ZeroC
Project: Ice
 
Join Date: Feb 2003
Location: Brisbane, Australia
Posts: 912
In addition, the C# implementation will also not compress if the compressed sice would be larger than the uncompressed size. That is, the run time first looks at the message size. If that is less than 100 bytes, it doesn't not even try to compress the message and sends it uncompressed. Otherwise, it compresses the message, compares the size of the compressed and uncompressed messages, and sends whichever is smaller.

Cheers,

Michi.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:35 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.