Networking :: Kill/disconnect Unix Domain Socket?
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
ADVERTISEMENT
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
View Related
Jun 28, 2009
Did a netstat -an got this
Active UNIX domain sockets (servers and established)
View 1 Replies
View Related
Jun 22, 2009
I am currently working on a project related to packet sniffing which has been implemented using the concept of raw sockets. I am using C language.I am able to decode the following details from the packets received from a local network,like:
source and Destination Mac Address
source and Destination IP Address
source and Destination port no
But I am having trouble in decoding the domain name when an user in the local network is logging onto internet.For eg. if a user in the local network is trying to log on to web using his browser say if he has logged on to url then from the packet I need to get the following details
source Mac Address from which user had logged on
source IP Address from which user had logged on
domain name
View 1 Replies
View Related
Jan 14, 2010
In readline(3) I should be able to map Control-Backspace to the same function as Control-W (unix-kill-rubout). Regardless of what I put in ~/.inputrc I'm unable to get this to be recognized.
C-: unix-kill-rubout
...for instance does not work. Can I map Control-Backspace to the unix-kill-rubout in readline?
View 5 Replies
View Related
Jul 23, 2015
I just switched form MySQL to MariaDB for my WordPress website which is run with Apache, but I had a little problem logging in. So, I backed up all of my databases, deleted all of MySQL's configuration files, and reinstalled MariaDB. However, now I'm completely unable to login to MariaDB.
Whenever I try to, it says: ERROR 1524 (HY000): Plugin 'unix_socket' is not loaded.
Also, why didn't MariaDB ask me to set up a password during the installation process like MySQL does?
View 8 Replies
View Related
Jan 28, 2011
currently I've got a big problem on programming with sockets. I use the winsock2 API and want to receive data from a multicast adress running on a UNIX-PC. The connection works fine and I really receive data from this group, but as it seems not the right packages. The received data is saved in a char[]. E.g. at received_msg[12] is a float value. This one I would like to read out, convert and use it in later progress the next value is y at received_msg[16]. The same Code works on a Unix PC with unix sockets but converted to winsock I've got the described problem and I have to make this code work under windows.
Here a piece of the code (received_msg[12]='3f'):
Buffer is a struct containing the two float values x and y. If I convert the char as this under windows the value of x is a huge number. The correct value is around 192, so receveid_message[12] should be 1.92. Could it be that the Unix-PC is sending data in an other way than the winsock receive it?
View 2 Replies
View Related
Mar 8, 2011
I have a server listening on incoming client connections. Once the client establishes SSL connection with the server, the server waits on read() from the client. Only Client can disconnect the connection. I want to have a timer in the server program to wait for x secs after read() and then disconnect the Client connection.
View 3 Replies
View Related
Jul 27, 2010
After my first installation/ version of Ubuntu 64, I performed a netstat and noticed I did NOT have any Active UNIX domain sockets as I do now. After doing some research, I found this is related to MYSQL and server services which I am in no need of running and nor do I want to run if not needed. So exactly what are these services used for, which app is creating this and why?
Is it possible to remove the app or processes if they are not needed? Killing these connections every time they attempt to establish would be rhetorical.
~$ uname -a
Linux panda 2.6.32-24-generic #38-Ubuntu SMP Mon Jul 5 09:20:59 UTC 2010 x86_64 GNU/Linux
:~$ netstat | more
Active Internet connections (w/o servers)
[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
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
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
Feb 23, 2009
i have been using samba to gain access into windows computer through my pc which has fedora 8 ..can i access the unix machine from another unix machine? is yes then what is the procedures ?
View 4 Replies
View Related
Apr 16, 2010
This started happening sometime yesterday afternoon on a server that's been trouble free for years.
My Ubuntu update is scheduled to run every month on the 5th, so this was roughly 10 days after that. So it seems to me it's not update related. The only thing I've done on the server lately is update a spamassassin rule which required an amavis restart. That was done earlier in the week.
I've already reviewed issues at [url] and all the conditions are correct for the more recent How to.
I can also confirm that, in fact, /var/run/clamav/clamd.ctl does not exist.
View 7 Replies
View Related
Mar 22, 2011
The combination "~." disconnects SSH session. But if I enter "~" twice, I won't be able to use this combo again to disconnect. Can I get this combo to work again within one SSH session if I typed in the "~" twice?
View 1 Replies
View Related
Sep 25, 2010
Periodically, about 3 to 5 hours, Ubuntu disconnects from my wi-fi network and doesn't reconnect until I restart the router.This is an Ubuntu specific issue, since it doesn't happen when I boot into my Windows partition, and it doesn't happen to other computers on the network.
View 2 Replies
View Related
Jan 19, 2010
I am checking something out in my connection and i just wanted to ask, is there a way to auto-disconnect and connect from the internet, for example say I want to disconnect now and reconnect to the internet in 0.05 seconds, is there any program that does that?
View 1 Replies
View Related
Nov 27, 2010
i use ppp to connect to a VPN, and i need it to auto reconnect when i looses connection. How do i make it work?I use Debian.
options.pptp settings:
lock
noauth
[code]....
View 1 Replies
View Related
Feb 25, 2010
use kubuntu 9.10 64-bit on AMD Turion M500 machine.The network keeps disconnecting periodically or on some heavy activity The connection is totally stable on windows 7 though.My doubts point to network manager and so my next step is to switch to command line wpa_supplicant
View 1 Replies
View Related
Mar 3, 2010
I use network-manager-pptp to connect to my VPN server. However, occasionally my VPN drops out (although my Internet stays up). I was just wondering how I could make the VPN drop-out trigger a bash script, for example playing a sound to alert me that the VPN has dropped?
View 1 Replies
View Related
May 29, 2010
I tough that firefox was the problem of my very slow web sites loading, but I am suspecting that sometimes the internet connection is the reason, maybe for some reason that I don't know it can not just connect to the site.I am running Linux quick-desktop 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05 UTC 2010 x86_64 GNU/Linux.when I browse the web it is very slow to load.sometimes I get this error message.Could not locate remote server.Even I know the site is up running like google.
View 6 Replies
View Related
Nov 22, 2010
A month ago I had (and still have) a weird problem were leaving my switched off computer plugged into the network killed the whole network.
[URL]
well I have found a fix, if I disconnect my computer via software (Right click and disconnect "eth1" and shut down the network will remain up. I want to make a script that runs on shutdown that simply disconnects "eth1". Are there any pre-made shutdown scripts in ubuntu that I can simply add "eth1 enabled = 0" or something.
View 4 Replies
View Related
Jan 18, 2011
I've simple PPTP connection in NetworkManager that is build in with ubuntu, once I disconnect the connection [to change IP or so] the connection won't establish again...
I'm getting a libnotify popup that says "Connection failed because timeout"
I'm getting a good IP, I just can't connect again after 1 disconnect...
Any idea why?
View 1 Replies
View Related
Jul 19, 2011
i installed linux at home on my laptop (dv2000, hp). Because i was having problems connecting to the internet through wireless. And wired at friends houses.So installed linux. Wireless took me a while but finally got that working. Now the problem i have is that wired is not working apart from at home. Any other router apart from mine it cannot connect to.
View 2 Replies
View Related
Aug 27, 2011
I have an asus eeepc 1015pem with the builtin wireless adapter..
[Code]....
and it seems to work ok connecting to the network for the most part. but when i start pushing decent traffic like with an scp copy of many files, the network will disconnect after a few seconds. with the following
[Code]....
ive searched and searched, but cant seem to find out what the heck is wrong with this silly thing..
[Code]....
View 2 Replies
View Related
Sep 28, 2010
I installed Red Hat Eterprise Linux 5.4 Server on my HCL Server machine.I use a static IP for my server. The problem is the network connection is automatically disconnected for some times and it again connected automatically after some time. It happens in periodic manner.I check my cable, port and connection.Those works fine in other PC
View 7 Replies
View Related
Jan 9, 2010
I have a cisco linksys wireless adapter (WUSB600n) which, most of the time, great when booting up. But mostly after some time (1min- 1hr.) it disconnects. When checking the status I can see some of the networks around me, including mine. But selecting it doesn't do anything. I searched the forums and tried:
sudo dhclient
and
sudo /etc/init.d/networking restart
But still no connection; the only thing that helps is rebooting.
View 2 Replies
View Related
May 19, 2010
I have my internet connection via a wireless USB adapter and that works fine. Recently I connected my pc (Ubuntu 9.10) through a wired switch to my modified xbox so I can watch my videos in my office. I can share my content with my xbox (except for the items on my external USB HD's - I am working on that and will post that question elsewhere) but when I have my PC's wired connection plugged into the switch I can not surf the web or check email. It gets stuck at resolving host and then times out. If I disconnect the pc from the switch it sometimes connects before it times out. Usually it is quicker if I reboot without the wired intranet connection.
View 1 Replies
View Related
Jun 7, 2010
I have 2 nic cards. One I use for my LAN and the other for my WAN (ftp, web). I am using a fresh install of Ubuntu 10.04 LTS. If I disconnect the WAN I can download packages (apt-get), ping etc. If both nic cards are active I cannot do either. This behavior is the same whether or not iptables is enabled. BTW I am using the server version. I was only able to find examples that used a GUI, nothing from the command line.
[Code]...
View 1 Replies
View Related
May 15, 2011
what is the command in the terminal to connect to and disconnect to interneti have mobile broadband usb modem
View 5 Replies
View Related