cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Would a database client using tcp/ip recognize if the packet transmitting the commit command to the server is lost?

View Entire Topic
Breck_Carter
Participant

Probably not, because TCP provides packet recovery: http://en.wikipedia.org/wiki/Packet_loss#Packet_recovery

MCMartin
Participant
0 Likes

So, there is no hand-shake on database level?

Former Member
0 Likes

If commit is succesful than you get succesfull return code. If tcp connection is broken while you transmit packet with commit than you get connection error (tcp garanee it). But may be will be interesting for you distributed transaction/two phase commit technology?

MCMartin
Participant
0 Likes

I am wondering if a situation is possible there the client sends the commit but server never receives it and client waits indefinetly to receive the handshake.

VolkerBarth
Contributor
0 Likes

The possible answers are wayyy beyond my network knowledge, but the effect of the LivenessTimeout would come into play here, methinks.