Networking :: Kill A Socket Connection WITHOUT Killing Its Parent Application?
Mar 9, 2010
Is there any command in Linux to kill a socket connection WITHOUT killing its parent application? For example, I have streaming server with several connected users and I want to close socket connection to one of them?
View 1 Replies
ADVERTISEMENT
Jun 21, 2010
I am trying to kill child process without killing the parent and seem to be having issues doing so. I have tried quite a few different commands and the end result is either killing all of them including the parent or not killing them at all.
View 1 Replies
View Related
Mar 10, 2011
I want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
[code]....
View 1 Replies
View Related
Jun 4, 2010
I want to configure socket timer to release socket(port) once the connection is terminated. Do we have something in Linux OS to configure this delay to release socket?.
Any command, link or man-page anything will be helpful.
I browsed a lot but unable to find it.
View 1 Replies
View Related
Jan 5, 2010
I have described my issue in detail here: [URL] basically, I am having a mysql server which keeps piling up on it's unix domain socket connections.
here's a small example of netstat as it looks now (count about 80-100 connections paired with httpd):
Code:
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 3521428 12429/mysqld /tmp/mysql.sock
[Code].....
This is indeed a mysql server issue as far as I managed to debug it but until a workaround/fix is found I need to have my server responsive and the first idea that comes to my mind is to somehow kill those stray connections. as described in the mysql topic mentioend above, killing from mysql will not work. I need to kill them from outside mysql. I have setup a crontab script to kill and restart the mysql server when it cannot connect and it runs every 5 min. however this only lead to mysql being down sooner rather than later because in many cases just kill -9 and then service start mysql does not do the job (it's either part of the same issue of mysql or another issue). basically I need to manually kill mysqld instances a bunch of times until it's ok, OR, if that doesn't work, stop everything that is using mysql, wait a few minutes, and then start mysql. so I ditched that script and now I am manually restarting mysql server every ~ 24 hours.
so basically it's a pain. if I were to kill the stray connections however, I will not have to bother every day with restarting mysql.
View 2 Replies
View Related
Jan 31, 2010
I am pragmatically trying to upload a list of files from my client machine to a proFTPd server I have running on Ubuntu. Every time I get several (around fifty) files into the transfer, I get the following error: Quote: Connection reset by peer: socket write error
I am able to remotely upload 25,000 small files of ~ 1K in size, but when I go to upload hundreds of 2-4 Mb files, I get a socket write error. Am I using up all available sockets before they can be released? If so, how do I release the sockets? If not, what does this error mean and why am I getting it?
View 1 Replies
View Related
Jul 22, 2010
I am facing an issue where the process starts hanging. When I closely look at the logs I come to know that some of the child processes that are forked by the parent process are not finished.
1) Is it possible that the child processes that are not finished occupy the socket memory of the parent process and ultimately a point is reached where no socket memory is available to fork new child processes.
2) What is the standard limit of socket memory in linux?
3) What is the fate of such child processes (as I have mentioned above)?
4) How to debug such cases so that the exact problematic area is identified?
View 2 Replies
View Related
Dec 7, 2010
Anyone knows the difference between a socket and TCP connection for connecting to an external system?
View 1 Replies
View Related
Jul 3, 2009
I have an x application I am trying to run under gnome. It assumes a fixed ip address and exclusive use of the eth0. I have run it under gnome on RHEL 5.3. I set the ip address and ifconfig confirms the correct address. When I run it I get "SocketConnect() error:
Resource temporarily unavailabele, port 8005. (on the terminal that I started it)
This is indicative that it has failed to make a connection to the outside world. One difference I notice between the non-working and the working is that, the error message seems to stop coming out on the fedora gnome, almost immediately, whereas on the other installations it will come out indefinitely until it connects. is virb0 interferring. What is different in the networking on fedora 11 then RHEL?
View 2 Replies
View Related
Jan 15, 2010
I have POPFile in my startup applications. I know how to automatically kill it when login out but cannot find a way to kill it if I just switch users (other than manually stopping it). It's important to kill it when using the switch users function because the new user will have access to the old user's POPFile database, have access to his email, etc, if I do not.I have a "lynx -dump http://127.0.0.1:8080/shutdown &>/dev/null" line in my /etc/gdm/PostSession/Default file that shuts down POPFile at log out. I need to do the same or something similar when switching user. Is there a way?
View 2 Replies
View Related
Mar 17, 2010
I am trying to connect with Winsock Windows sockets from a PC running Windows XP with a utility program that enables a dialogue over sockets. I have the listener running on Ubuntu on Port 6330. I can telnet to the listener and interact from both the Ubuntu desktop and the XP PC. But my utility program using Winsock is unable to connect. I have no firewalls impeding this. Maybe there is a better vehicle than the Windows Winsock.dll? I dont need network file access, just TCP ports/.sockets.
View 1 Replies
View Related
Sep 12, 2010
Ever since I installed and started operating my FTP server, with a wired connection, my wireless connection to my computers has been going in and out a lot. My wireless connection is about a foot away from the router. Is it possible that the wired FTP server is pulling a lot of the internet signal away from my wireless setup?
View 3 Replies
View Related
Mar 7, 2011
I'm running Ubuntu 10.10. I have a problem with any client side network communication from any java based program/application. I've tried to run the following code:
Code:
public static void main(String[] args) throws Exception {
long start = System.currentTimeMillis();
Socket s = new Socket("ubuntuforums.org", 80);
System.out.println("1. connection created in "+ (System.currentTimeMillis() - start)/1000.0 +" s");
s.close(); start = System.currentTimeMillis();
s = new Socket("ubuntuforums.org", 80);
System.out.println("2. connection created in "+ (System.currentTimeMillis() - start)/1000.0 +" s");
s.close(); }
The result is the following:
Code:
1. connection created in 189.31 s
2. connection created in 0.085 s
I've tried both java-1.6.0-openjdk and java-6-sun-1.6.0.24 with almost the same results. During the extremely long 189 seconds, the processor is doing almost nothing (java thread has 0 %). I've tried also a wireshark to check what is going on, but the first packet was released after those 189 seconds. There is nothing in log files, I have no exceptions or errors, and the connections work (after the first long delay) just fine.
View 2 Replies
View Related
May 5, 2009
I had installed Fedora 10
Below is the output of uname -a
Linux 2.6.27.5-117.fc10.i686.PAE #1 SMP Tue Nov 18 12:08:10 EST 2008 i686 i686 i386 GNU/Linux
I need to enable telnet service on it, then found xinetd and telnet-server not installed,
Then I had installed below
First I had installed Xinetd: xinetd-2.3.14-21.fc10.i386.rpm
then I had installed telnet-server: xinetd-2.3.14-21.fc10.i386.rpm
After installation I executed below commands
Service xinetd start
Chkconfig xinetd on
Chkconfig telnet on
Service iptables stop
Chkconfig iptables off
Iptables �F
After I had tried telnet localhost ----IT FAILED
when I run telnet server manually by issuing the below command
/usr/sbin/in.telnetd, I get below error
[COLOR="Red"]/usr/sbin/in.telnetd: getpeername: Socket operation on non-socket[/COLOR]
I have other system running same OS, I had followed the same steps discussed above to enable telnet, It works fine on it.
View 1 Replies
View Related
May 4, 2011
I'm trying to kill an android SDK emulator but it just won't shut down. When I try to kill it through system monitor (see pics) it doesn't work, "killall program_name" doesn't work either. It stays firm and all I have left is to reboot Ubuntu.
View 6 Replies
View Related
May 14, 2011
I had opened Thunderbird and discovered I had no cursor control. Couldn't close it, couldn't exit it, couldn't switch windows. I couldn't even shut down using that button.
I figured there must be a kill command similar to Windoze cntrl + alt + del that would allow me to close that application.Is there such a keyboard hot key for doing this?
View 2 Replies
View Related
Dec 16, 2010
anyone tell wich coomand to kill an aplication , in ubuntu i use sudo killalll aplicattion
View 3 Replies
View Related
Jan 9, 2011
I am using kvkbd as an onscreen keyboard and I have it set to start on the login screen but after I login I want the keyboard to close and I can not get this to work. At the bottom of /etc/gdm/Init/DefaultI added the line.Code:exec kvkbd&This works great and kvkbd starts up and even puts a panel icon at the bottom of the login screen but after the login the keyboard is still there?I have tried making a launcher and adding it to the startup applications. I wrote a script and put it in the /usr/sbin and /usr/bin and also added a line at the bottom of my /etc/rc.local that should have run that same script to kill kvkbd and nothing. The really weird thing is that the launcher that I made would work if I double clicked on it but if i had it set to run as a startup application it would not work.
View 3 Replies
View Related
Feb 7, 2011
I just ran "mysqld" manually in the terminal, but now I can't quit it and go back to bash. I've tried CTRL+C and typing "reset", but neither do anything. Anything I type is just ignored. I've had this numerous times in the past with various operating systems and in various scenario's, hence why I'm seeking the solution. Is there some universal hotkey to quit the currently running application or something? I guess I'm looking for a way to send SIGQUIT, SIGTERM or possibly even a EOF signal?
View 4 Replies
View Related
May 3, 2011
I keep getting a segfault in compiz. I've tried everything! This is from a fresh install without and accelerated drivers (I have ATI)
Quote:
Code:
**Switching to Compiz window management**
/usr/local/bin/compiz-indicator:99: GtkWarning: Can't set a parent on widget which has a parent
menu.append(kill)
/usr/local/bin/compiz-indicator:100: GtkWarning: Can't set a parent on widget which has a parent
menu.append(start)
[code]....
View 2 Replies
View Related
Feb 12, 2010
I'm trying to run Interhack (spoiled variant of Nethack) for local game. Is looking through settings I saw that:
[Code]....
When I try to start it with ih_server option it gives me that error: Code: Can't access() script Could not create socket: Connection refused I think my problem is closed port: Code: nc localhost 9999 localhost [127.0.0.1] 9999 (?) : Connection refused How do I fix this?
View 2 Replies
View Related
Sep 27, 2010
How do I kill a python application from the command line? For an example I have 2 applications running. The first is bleachbit and the second is furiusisomount. They are both python applications so they both come up as python under process name. I could kill them by ID number but if there was another way to do it so that it could be automated in a bash script.
View 9 Replies
View Related
Jul 14, 2010
What is the best client application for connecting through PPPoE (DSL connection)? Gnome's default network manager isn't very useful. I created a DSL connection but don't know how to use that.
View 1 Replies
View Related
Sep 29, 2009
if u use vnc real and u share the vnc to a guest and u give him the password, and after he ends the look, u want to kill him how can u do that on the xterm i know that vncconfig can do it, but i want to know if there is a way to do it by your self, killing the ip or something.
View 1 Replies
View Related
Feb 20, 2010
I have the following problem. I want to find out connection between process and socket. When I type to the terminal the following command netstat -anpetu so I get the following output:
[Code]....
As you can see just some connection have assign PID/Programme. How can I find out Program of this socket without PID/programme. like this 0.0.0.0:52472? Certainly I know that some port are well-known but there are a lot of unknown ports(like 8307 3350 and so on).
View 3 Replies
View Related
Sep 16, 2010
I'm writing a client-server program. There are more than 500 clients. I start a thread to process and response to each client and the processing needs some MySQL query. I'm looking for any possible hazards on my server!
1- Any limitation on "Maximum Simultaneous Socket Connection"?
2- Any limitation on using mysql?
3- As socket on Linux are file, Any limitation on number of sockets or threads?
I'm using a Linux server (Centos or Fedora or Ubuntu) and clients are both Linux and Windows.
View 2 Replies
View Related
Jul 8, 2011
I use Ubuntu 10.04 server as a base for my media center, with rtorrent as my download program. I've had to move into a smaller place where I don't have direct control over the network, and where we have a vanishingly poor DSL connection. When I start up rtorrent, every computer on the network starts having dramatic slowdowns of internet speed, even when both my downloads and uploads are throttled to 1KBps, which is as low as rtorrent will go. Unfortunately, as I said, I don't have direct access to the router. The IT guy says my media center "is sending requests to all the computers on the network like crazy". How he knows that, I don't know, nor do I know exactly what he means.
But it is only when I have rtorrent running, even when it's only running 1k each way. It was my intention to test whether or not running utorrent on my Windows box had the same effect, but it's telling me "an attempt was made to access a socket in a way forbidden by its access permissions" on all trackers, which I've also been unable to resolve. It may or may not be symptomatic of the same issue, but the UI of rtorrent is painfully slow. As in, I push the down arrow, go make myself a sandwich and watch some telly, and maybe when I'm done it's selected the next torrent. I used to use Transmission, but it used more resources and interfered with watching shows.
View 1 Replies
View Related
Jun 22, 2011
Strange one. Just upgraded my mother-in-law's computer from 8.04 to 10.04 via the update manager. All seems to be working beautifully except ...
* When I run gstreamer-properties and do an output test I get a test sound through the headphones plugged into the front audio socket of the machine using the 'Analogue Headphones' setting in Sound Preferences. (This rules out dead headphones.)
* When I try to play audio through any app I get no sound through the headphones, but if I change the setting to 'Analogue Output' in Sound Preferences I get audio loud and clear through the speakers which are plugged into the audio socket at the rear of the machine. how the gstreamer-properties test is getting audio to the front socket I guess I'd be getting somewhere.
View 2 Replies
View Related
Dec 8, 2010
figure out this error?
Code:
kradalby@hpcompaq6530b-laptop ~/.ssh $ ssh -vvv -p 110 kradalby@dfekt.no
OpenSSH_5.5p1 Debian-5+b1, OpenSSL 0.9.8o 01 Jun 2010
[code]....
View 3 Replies
View Related
Oct 21, 2010
Today I run OpenOffice.org extensions update and it freezed fter showing me that everything was successful.When i xkilled it it refused tolaunch without any problem indication.killall soffice.bin didn't report "No process found" after 1,2,3...20 times.So I tried killall soffice.bin -i
Code:
$ sudo killall soffice.bin -i
Kill soffice.bin(3319) ? (y/N) y
[code]...
View 1 Replies
View Related