473,659 Members | 3,082 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.IOExc eption: Unable to write data to the transport
connection. ---System.Net.Sock ets.SocketExcep tion: An established
connection was aborted by the software in your host machine at
System.Net.Sock ets.Socket.Send (Byte[] buffer, Int32 offset, Int32 size,
SocketFlags socketFlags) at
System.Net.Sock ets.NetworkStre am.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 2736
Forgot my last question I was being an idiot and didn't set the
interactive_tim eout 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
1558
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 rather than my own. How in the world would I accomplish this? Thanks,
4
4200
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 write to close the session or does it get killed when the user is closes their browser? Please advise. rafael
4
1903
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 strange is that every time the ASPX application ended (closed and disposed the connection object), the Oracle session connection never killed. These eventually bring us to oracle connections used up situation :(
2
6817
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 .Unfortunately they are not able to help me and eventually direct me here i'm not 100% sure if this problem is due to ODP.net provider or asp.net IIS setting Hopefully Microsoft Experts here can help me up. Thx Introduction...
2
5431
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 recommended by many for web applications. I create the instances of Excel, Workbook and the worksheet. And later on Release the references by “System.Runtime.InteropServices.Marshal.ReleaseComObject(Object)” and making the object as null finally....
4
1762
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. The app also has a OLEDB connection to the same file to fetch data from the file and display it on a datagrid. Now my trouble is that, when I release the COM object, it gets released from smoothly, to say, but the process is still running and...
0
1653
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 server. The application log always has this error message in it: A user request from the session with SPID 56 generated a fatal exception. SQL Server is terminating this session. Contact Product Support Services with the dump produced in the log...
7
9402
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 the process ends. The first few batch runs would only succeed with one or two files being processed (out of 60) before the process was "Killed". Now it makes no
0
8335
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8851
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8528
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8627
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6179
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupr who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1976
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1737
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.