Jim Urban wrote: > > Our clients run our application on both the internet and intranet. > > If we could tell when a user is on a dialup (slow) connection we could > compress the data and not compressing it for those on a LAN connection. >
If it's an intranet then (as mentioned in other posts) the dialups probably have predictable IP's. You'd have to maintain a table of which IP ranges were know to be dialups, though. Measuring the connection speed is difficult, because a momentary slowdown in the local LAN could make it appear that a LAN connection was a dialup connection. Also, what do you time? With buffering, your servlet is never really sure if it's written the data to a client or just to the buffers. Random ideas: Maybe a little piece of (shudder) Javascript on the client side that measures how long it takes to download the first page, then sends that back to the server? Maybe a checkbox on the login? Just ask them? -- Christopher St. John [EMAIL PROTECTED] DistribuTopia http://www.distributopia.com -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>
