on 03-08-2006 11:40 AM
Hi,
What happens if multiple clients try to use one connection at the same time? Is it possible to get an error? I have tried two client. One client called an RFC function and this function takes 30 seconds. While this client's work is going on, I have tried with another client. And Second client did not get an error. But Second client's work is not completed instantly. Second client waited about 30 seconds. So, I think that if a connection is used by a client, next client that wants to do something with this connection will wait until connection is free. Is this true? Is there any thresholding such as one connection can be shared or waited by X number clients?
Thanks.
You cannot share connections. Trying to do so would cause any kind of garbage on the wire. To prevent this we have sever lock(connection {} blocks on the citical parts in the code. This serializes the calls and causes the behavior you are experiencing. Anyway, you should not do it. Better use the connection pool and the connection limitation features.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.