473,842 Members | 1,719 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

socket and Ctl-C workaround?

I've been trying to figure out why Ctl-C sometimes doesn't interrupt
yum. It appears to be unresolved Python bug 926423, unresolved proposed
patch 1102879, don't know if anything ever came of it. Note that I
cannot ask all yum users to apply the patch. I'm not sure I should be
getting rid of the timeout, either.

When a Ctl-C is lost, sometimes it is silently eaten, and other times it
becomes socket.error(11 ,...) (EWOULDBLOCK). As (AFAICT) the socket in
question is a blocking socket, I could use that nonsense exception to
detect at least some of the lost Ctl-Cs (eww). The socket does have a
timeout.

Note that I am using FC5 Linux, Python 2.4.2.
_______________ _______________ _______________ _______________ ____________
TonyN.:' *firstname*nlsn ews@georgea*las tname*.com
' <http://www.georgeanels on.com/>
Jun 15 '06 #1
0 977

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

Similar topics

0
2834
by: Ike | last post by:
I have a combobox on an activex ctl file, (TobulControl.ctl). I have a button on the ctl file too, and when the button is pressed, a dialog box opens. Within the code of this dialog box, I refer to this combobox with: If TobulControl.Combo1.ListIndex <> 8 Then whereupon at this line I get a "Runtime Error 424 : Object Required" How can I access the ctl file. It;s name is TobulControl.ctl, and it is saved as TobulControl.ctl ? Thanks,...
8
9292
by: simon place | last post by:
Spent some very frustrating hours recoding to find a way of closing a server socket, i'd not thought it would be any problem, however, after complete failure and as a last resort, i looked at the python wrapper module for sockets, and found that the close command doesn't actually call the underlying close! this didn't seem right, so i added it, and my code now works simply and as expected. def close(self):
1
10363
by: gilgantic | last post by:
Is there anyway of eliminating duplicate entries as the database loads data using SQLLDR and/or .ctl (Control File)? I use the following command line using SQLLDR and a control file to load my data, but the sample.dat file has duplicate information. I would like to be able to eliminate this, since I have know ability to manipulate the sample.dat. ${ORACLE_HOME}/bin/sqlldr $USERPW /home/sample/sample.ctl ############# sample.ctl...
4
8747
by: DreJoh | last post by:
I've read many articles on the subject and the majority of them give the same solution that's in article 821625 on the MSDN website. I'm using the following code and when a the client disconnects the child socket remains in the CLOSE_WAIT state. Anyone have any idea what's missing? ----------------------------- Socket Code ----------------------------- namespace Sockets { #region Class - SocketClient
4
18146
by: Chris Tanger | last post by:
Context: C# System.Net.Sockets Socket created with constructor prarmeters Internetwork, Stream and TCP everything else is left at the default parameters and options except linger may be changed as I find appropriate. I am using the socket asynchronously by calling the BeingSend and BeginReceive calls. I would like to be able to call shutdown and close asynchronously if possible.
3
10627
by: Antony | last post by:
Hi friends, I have the following code in an MDI container (with 3 MDI forms/children) with a button on the MDI container form. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim Ctl As Control For Each Ctl In Me.Controls MsgBox(Ctl.Name)
0
851
by: G.Ashok | last post by:
Hi, I just installed VS.Net 2003 and upgraded my project to 2003. Immediately found the following new behavior which causes my solution working erratic. In the leave event of a control (e.g. TextBox) I select (set focus to) another control cause the leave event to raises again of the source text box. Steps to reproduce.
2
1196
by: Paul | last post by:
I have a MDI form which hosts numerous MdiChildren forms. I want to prevent the users from toggling to other MdiChildren forms. The program allows it by pressing Ctl+F6 or Ctl+Tab. In the MDI form I use the KeyUp event and set Handles = True: Private Sub FrontierMDI_KeyUp(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyUp Select Case e.KeyCode Case Keys.F6
0
4703
by: Macca | last post by:
Hi, I am writing an asychronous socket server to handle 20+ simulataneous connections. I have used the example in MSDN as a base. The code is shown at end of question. Each connection has a number of different types of data coming in. I have a databuffer for each type of data coming in.
0
1094
by: Gary Brown | last post by:
Hi, I have implemented Cut item in a ListView with Ctl-X as the shortcut key. Unfortunately this supercedes Ctl-X when used to edit a label. What is the easiest way around this? The Ctl-X is assigned as a property value to the menu of a form that uses a custom control that is subclassed to ListView. Thanks, Gary
0
9871
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9715
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
10944
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...
0
10610
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10672
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
9453
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7035
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
5696
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
4089
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.