CentOS 5 Networking :: Max Socket Connexion On A Server?

Jan 8, 2009

I used this Tutorial, to create a php chat daemon. But now I'm getting to the point where i've reach the max socket connexion on my centOs box... I have to much users. Which is 120. when there's more then that number of users in the chat .. things start to get messy. I have tried to change the SOMAXCONN kernel variable without success. I'm sure there is a solution to boost the number of user my chat can handle... (My server is dedicated to the chat).

View 2 Replies


ADVERTISEMENT

CentOS 5 :: Cannot Connect To Local MySQL Server Through Socket

Apr 26, 2010

During the boot of CentOs I see this message which never stops scrolling during all the boot :
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

View 3 Replies View Related

Server :: Socket Connections / Socket And TCP Connection For Connecting To An External System?

Dec 7, 2010

Anyone knows the difference between a socket and TCP connection for connecting to an external system?

View 1 Replies View Related

CentOS 5 Networking :: Can't Join Multicast Socket Group?

Nov 3, 2009

I have a PC connected by ethernet to a Galil motion controller card.I recently installed Centos 5.The Galil software for communicating with the card is reporting that it can't join a multicast socket group.The software used to work with another version of Linux.

View 6 Replies View Related

Networking :: Configuring Socket Timer To Release Socket Once The Connection Is Terminated?

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

Networking :: /usr/sbin/in.telnetd: Getpeername: Socket Operation On Non-socket?

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

CentOS 5 Networking :: Error: Unable To Create Socket - Permission Denied

May 21, 2009

I have a cgi script that tries to get the IP address of a domain. the Domain is defined in Bind, yet it can not resolve it. I put the domain in the host file and it then gives a Error: unable to create socket - Permission denied

I figure I have to do some code changes to the script but here I would like an explaination as to the error I am getting.

View 1 Replies View Related

Networking :: Multiple FTP Upload Socket Error "Connection Reset By Peer: Socket Write"

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

CentOS 5 :: Socket By Xterm Is Missing?

Oct 7, 2010

I use a Windows computer to remotely operate two Centos 5.4 boxes over the Internet. For text or console work I use putty which does an excellent job. But sometimes I need to run a graphical app such as xterm. For that, I use an X Server such as Xming or MobaXterm. Until today, that was working reasonably well. On one Centos, it still does. But on the other one, I started getting an error message that I have not seen before:

[root ]# /usr/bin/system-config-network connect /tmp/.X11-unix/X0: No such file or directory The application 'system-config-network-gui' lost its connection to the display localhost:10.0;
most likely the X server was shut down or you killed/destroyed the application. [root ]# xterm connect /tmp/.X11-unix/X0: No such file or directory X connection to localhost:10.0 broken (explicit kill or server shutdown). [root ]#

View 2 Replies View Related

Server :: ERROR 2002 (HY0000): Can't Connect To Local MySQL Server Through Socket

Mar 28, 2010

Im getting this error when i try to run mysql from a shell

Code:
ERROR 2002 (HY0000): can't connect to local MySQL server through socket

I have installed MySQL over yum on fedora.

but the path and file /var/lib/mysql/mysql.sock does not exist on my system?

View 3 Replies View Related

Server :: ERROR 2002 (HY000): Can't Connect To Local MySQL Server Through Socket

Apr 11, 2010

I've tried /etc/init.d/mysql start, and it actually starts, or at least, it doesn't error out. But when I do pgrep mysql I get nothing, and when I try to login with mysql -p as root, I get

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

None of my other logins work, either, but since pgrep mysql didn't work, it's clear that MySQL just isn't running. I tried uninstalling and reinstalling mysql-server via apt-get, but I get the same thing. The logs in /var/log/syslog show this:

Apr 11 14:31:26 /etc/init.d/mysql[9774]: #007/usr/bin/mysqladmin: connect to server at 'localhost' failed
Apr 11 14:31:26 /etc/init.d/mysql[9774]: error: 'Can't connect to local MySQL server

[code].....

View 3 Replies View Related

Server :: ERROR 2002 (HY000): Can't Connect To Local MySQL Server Through Socket '/var/lib/mysq

Apr 24, 2011

I have an e-mail production server that has been running fine for almost two years.

Notice mail was not serving today and login to a bunch of errors in messages

However, I think they are all from not being able to access MySQL and when I:

mysql -u root -p

I get:

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

View 5 Replies View Related

General :: Socket Programming - Feed Some Words One By One To The Socket

Jul 6, 2010

i'm writing a simple program of client socket program. Here below is the code sample which i'm writing...

Code:
//tcp_client.c
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include<string.h>
#include<stdlib.h>
[Code].....

the above code works fine.if we copmile and run ./a.exe 192.xx.xx.xxx 1111 and press enter it works fine..everytime it asks "Please enter the message: " and if give that will be displayed in server. but my problem is i dont want to print everytime "Please enter the message: " i just want to feed some words one by one to the socket.

View 4 Replies View Related

Programming :: Setsockopt : Socket Operation On Non-socket Getting Error?

Mar 30, 2009

im getting that error in my code for some reason. I compiled my code, and when i try to run this server it throws me an error on my call to setsocketopt(). The only way it can reach that part of my loop is if it succeeds when it calls sock() so I dont understand why the error says its an operation on a non-socket. Im just trying to set up a server to pass messages from a client to it a viceversa. Here is the code:

Code:
int main()
{
int socket_fd, new_socket_fd, k;
struct addrinfo hints, *server_info, *p;
struct sockaddr_storage peer_address;
code....

View 7 Replies View Related

CentOS 5 :: Socket Programming: Accept()-ing All Pending Connections

May 28, 2009

I am writing a server which uses edge-triggered epoll. When the server calls accept(), it just extracts the first connection in the pending queue. If there are more connections that are waiting, can we make the server accept all the pending connections? I wrote a loop like the following:

do {
client_fd = accept(...);
/* Work with the client fd */
} while (client_fd != -1); [/code]

Doesn't seem to work. A related question, more a clarification, is as follows. My understanding was that a connect() at the client returns only when accept() in the server returns. Clearly, I was incorrect. Even with no accept() call in the server, my client was able to connect and send data. Am I getting this right?

View 2 Replies View Related

General :: Socket Error / Socket 31: 0x36?

Sep 15, 2009

We are seeing recv err on socket 31: 0x36. What could be meaning of the error?.

View 1 Replies View Related

Server :: Squid 2.7 Socket Failure (sometimes)

Jul 20, 2011

I'm having a problem at the moment (sometimes), tail -f cache.log

[Code].....

View 1 Replies View Related

CentOS 5 Networking :: Unable To Port 8080 On CentOS VPS Server

May 30, 2011

i am not able to port 8080 on my CentOS VPS server.I have followed all the instuctions as mentioned on iptables wiki page.Also I am able to telnet my ip address and port number, But can not access from browser.

View 6 Replies View Related

Programming :: Chat Socket Between Client And Server

Mar 17, 2011

I want to built a Chat Program (based on Socket connection) between client and server. I use the GTK+ &GLADE graphic tool. Can you send me the code for this program or any material to learn. Also, I want to know how to show the input to text view (in GTK+&Glade).

View 3 Replies View Related

Networking :: TCP And UDP Socket On Same Port ?

Nov 20, 2009

Can we open TCP and UDP socket on same port number?

View 1 Replies View Related

Red Hat / Fedora :: Can't Connect To Local MySQL Server Through Socket

Jul 4, 2010

I'm using fedora 13(x86_64).i got an error message while starting the mysql database software through the kernel. Code: [pradeep@localhost ~]$ mysql ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [pradeep@localhost ~]$ this is the first time i'm using the mysql in linux environment. do i have to configure anything before using it for the first time ?!

View 5 Replies View Related

General :: Can't Connect To Local Mysql Server Through Socket?

Aug 8, 2011

i am new member for this forum, i am doing copy data from virtualbox A centos machine to virtualbox B centos machine.first step i use mysqldump database xxx > xxx.sqlthan send to B machine by scp xxx.sql @B machine IP /root.but come to third step, the xxx.sql need import to B machine mysql database,the error occur again:# can't connect to local mysql server through socket 'opt/lampp/lampp/mysql/mysql.socki really dun know how to solve it, use almost 3 hour cannot do solve it,but i use win scp check the folder, i found mysql.sock is no at the /opt/lampp/lampp/mysql/mysql.sock but at/opt/lampp/var/mysql/mysql.socpi dun know how to continue it, i hope those centos user help me to overcomethe issue. thank you very much!centos version 5.5, xampp version 1.4

View 3 Replies View Related

General :: Can't Connect To Local MySQL Server Through Socket

Jun 18, 2010

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

following my.cnf setting why this error is coming

#BEGIN CONFIG INFO
#DESCR: 4GB RAM, InnoDB only, ACID, few connections, heavy queries
#TYPE: SYSTEM
#END CONFIG INFO

[Code].....

View 8 Replies View Related

Software :: Cannot Connect To Local MySQL Server Through Socket

Apr 26, 2010

I some how installed mysql-5.1.46 (I believe I have installed) When I start mysql I am getting error:
[root@501 ~]# mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Then when I restart:
[root@501 ~]# /etc/init.d/mysql restart
ERROR! MySQL manager or server PID file could not be found!
Starting MySQL. ERROR! Manager of pid-file quit without updating file.

Then I tried to safe start mysql :
[root@501 ~]# mysqld_safe
100426 21:36:49 mysqld_safe Logging to '/usr/local/mysql/data/501.training.com.err'.
100426 21:36:49 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
100426 21:36:49 mysqld_safe mysqld from pid file /usr/local/mysql/data/501.training.com.pid ended .....

View 2 Replies View Related

Programming :: How Could Server Detect Closed Client Socket Using TCP And C++

Aug 6, 2010

Reading some examples on net and copying some codes I was able to build a (frankstein) server that accept connection from one client and receive and send messages to it. The big problem that shows up is that I don't know when client disconnects from my server.

I've been looking for a solution, but no success. I'd read about SO_KEEPALIVE option (which could solve my problem), but I don't know how to use it (how to check the value of it).

I can't use ping because the server (machine) could be running, but not the client (software).

Anyone knows a good tutorial or how to (for beginners like me xD) of TcpIp sockets using c/c++ and how to detect when a client disconnect?

I don't know sockets very well.

View 6 Replies View Related

Programming :: Server Socket Assigned By Children Processes ?

Aug 27, 2010

I am currently programming a suite of daemons in c++ on CentOS 64. More or less all those daemons are SOAP servers, with the SOAP part handled by gSOAP.

One of the daemons is a monitor sitting on a certain server and more or less just checking if the other daemons are up and running - but also offering a SOAP interface to get the 'current situation' on the machine.

Whenever the detected situation does not correspond to the defined (i.E. a process which should be is not running) it is started up.

This part, I implemented via a system() call that starts the other process.

I was a little confused when lately often this monitoring process would not start because it could not bind its server port - the one the SOAP server is listening on.

And confusion got bigger when netstat told me that the port is assigned to one of the processes that were before started by the monitor..?

Even better: if I then kill the process of which netstat tells me it holds the port, the next netstat shows the next monitor-started process as the one listening on the port..

Only if I kill all the processes that were started by the monitor, the port is released and I am able to launch the monitor again.

Now I wonder: why does this port get 'reassigned' to the children - and most of all: how can I prevent this from happening?

View 6 Replies View Related

Programming :: Socket C++ / Send And Receive Messages In Server?

Jan 2, 2009

I'm trying implement a small server for a university work, my server is creating, binding and listening but it don't accept any connection, these are the files I'm using in server:

Code:

// Definition of the Socket class
#ifndef SOCKET_H
#define SOCKET_H
#include <sys/types.h>
code....

I've made a client just for test it, but no ones run well, the server is always returning -1 when accept is called!!

What should I do to send and receive messages in this server??

View 3 Replies View Related

Red Hat :: Error 'Can't Connect To Local MySQL Server Through Socket'

Feb 28, 2011

when i tried the command mysql -u root it is giving me an error that "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'(2)" although my mysql server is ruuning beacuse i m using XAMMP server and its inbuild mysql server is running i cannot use service mysqld start command beacuse this command try to start another instance of mysql and i required mysql of XAMMP.

View 3 Replies View Related

Networking :: How To Avoid Loopbacking For UDP Socket

Aug 26, 2010

I am facing some problem with loopback on UDP sockets. is there anyway by with we could avoid loopbacking of a UDP datagram destined to same IP address, and instead force it to go all the way till NIC and then come back to the socket.

The problem is, we have some piece of code written at driver level, and we want each and every packet to hit that code on its TX and RX path. But if src and dest IPs are same, packet loops back from the IP stack itself, without hitting the driver code.

Can we modify the characteristics of a UDP socket, such that each and every packet has to go through NIC interface, thus avoiding loop backing when the src and dest IPs are same?

View 1 Replies View Related

Networking :: Create The IPV6 Socket

Mar 14, 2010

I am trying to create the IPV6 socket and was wondering if anybody has any code strip which I can reuse ?

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved