Re: ADO OLEDB connection to MSSQL: pooling not working
From: N.D. van Bochove (dvbochove_at_hotmail.com)
Date: 02/19/05
- Next message: N.D. van Bochove: "Re: ADO OLEDB connection to MSSQL: pooling not working"
- Previous message: Jeff Howard: "TAdoData Master Detail Relationships"
- In reply to: Thomas Holme: "ADO OLEDB connection to MSSQL: pooling not working"
- Next in thread: N.D. van Bochove: "Re: ADO OLEDB connection to MSSQL: pooling not working"
- Reply: N.D. van Bochove: "Re: ADO OLEDB connection to MSSQL: pooling not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Feb 2005 15:32:36 -0800
Thomas Holme wrote:
>
> When I close the Table (but not the connection) the port used for the
> connection enters a state called "TIME_WAIT". Here (in the resource
> pool) it remains for 4 minutes, then it is flushed and goes away.
>
Appearently, for some reason, the connection is closes when you close
the table. TIME_WAIT is a TCP thing, and is the state every TCP (not
only MSSQL) connection gets when it's closed. I believe (and someone
corrects me when I'm wrong) it is done because after a TCP connection
is closed, packets could still arive, and should be discarded. That's
why the TCP connection enters the TIME_WAIT status, to prevent a new
connection to use the same port number (client port number that is, not
the server port number 1433) too soon.
Anyway, when you see a connection in TIME_WAIT, that connection is
closed, and cannot be used again. If the connection would be in a pool
for reuse, it would still be open on th TCP level.
Regards, Diederik
- Next message: N.D. van Bochove: "Re: ADO OLEDB connection to MSSQL: pooling not working"
- Previous message: Jeff Howard: "TAdoData Master Detail Relationships"
- In reply to: Thomas Holme: "ADO OLEDB connection to MSSQL: pooling not working"
- Next in thread: N.D. van Bochove: "Re: ADO OLEDB connection to MSSQL: pooling not working"
- Reply: N.D. van Bochove: "Re: ADO OLEDB connection to MSSQL: pooling not working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|