473,406 Members | 2,369 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Killed connection

I'm running into this problem where my database connection seems to
get disconnected by something unknown to me. My server is running
locally so any network problems shouldn't have any affect on my
connection. I'm not sure if it's time based or due to some other
external event. So far my tests to leave an open (idle) connection for
an extended period of time haven't reproduced this error.

The exceptions look something like this and track back to my original
execute statement:
Unable to write data to the transport connection. --->
System.IO.IOException: Unable to write data to the transport
connection. ---System.Net.Sockets.SocketException: An established
connection was aborted by the software in your host machine at
System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size,
SocketFlags socketFlags) at
System.Net.Sockets.NetworkStream.Write(Byte[] buffer, Int32 offset,
Int32 size)

I haven't found a connection timeout type parameter that would cause
this behavior - only the connection timeout property on the
connection object which is only for actually making the conection. I
checked the lifetime services of the .NET connector for the
MySqlConnection() object and it's null so it should have an infinite
lifetime.

I haven't seen anything in the server log (which never seems to have
anything useful - just startup and shutdown). I haven't seen any
other related exceptions so I'm not sure what is going on here.
Testing for this exception and attempting to re-connect is really
unacceptable solution. I also don't want to start a new connection
every time because there are times when there are bursts of writes and
queries from multiple connections on multiple threads (one thread per
connection).

I'm using:
MySQL 4.1.10
MySQL .NET Connector 1.0.4

Aug 25 '06 #1
1 2722
Forgot my last question I was being an idiot and didn't set the
interactive_timeout variable so it was timing out after the default
8hrs.

Aug 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Harlin Seritt | last post by:
I am looking for a way for my script to write to a log file saying something like this: I was killed at time.asctime() I would like to be able to do this if/when the script is killed by means...
4
by: Rafael Chemtob | last post by:
Hi, I'm using session cookies on my web app and it looks like the session is not being killed when the user closes the browser. We use a Global.asa file on our app. Do we have to explicitly...
4
by: Steve | last post by:
We are using ODP.net (version 9.2.0.4.01) as data provider for Oracle in our dotnet app. Currently we are using Microsoft.NET Framework 1.1 (VS.net IDE 2003) in our project. One thing I feel...
2
by: Steve Foo | last post by:
I have been posting this question in google group, EE, and Oracle OTN forum and still no cannot find a suitable solution for it. I have contacted Singapore Microsoft support regarding the problem...
2
by: Praveen K | last post by:
I have a problem in communicating between the C# and the Excel Interop objects. The problem is something as described below. I use Microsoft Office-XP PIA dll’s as these dll’s were been...
4
by: Mr.Doubt | last post by:
I've a widows application, that makes use of an EXCEL COM object, to run a few macros available in a EXCEL file. The object is created when the app is started and is closed when the app is closed....
0
by: sql_server_user | last post by:
We're seeing something very strange on our SQL Server 2005 9.0.2047 DB on Windows Server 2003 x64 Standard: 1. Most open connections to the database are being spontaneously terminated by the...
7
by: dieter | last post by:
Hi, Overview ======= I'm doing some simple file manipulation work and the process gets "Killed" everytime I run it. No traceback, no segfault... just the word "Killed" in the bash shell and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.