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


ADVERTISEMENT

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

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

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

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

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

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

General :: Error - Could Not Open Socket ?

May 5, 2010

I'm using PHP on a centos server to send emails out. It should use smtp with authentication to send out and one of the credentials is the hostname but in trying to use those credentials I get this error:

Zend_Mail_Protocol_Exception: Could not open socket

However, when using an ip address instead of the host's name it seems to work making me think this is a server issue/Centos issue.

View 3 Replies View Related

Programming :: Socket Programming - Detect Whether A Client Socket Is Closed / Active?

Mar 8, 2011

iam just trying to connect to server which accepts one client and server will read(blocking operation) infinitely, but After closing the client socket the server "read operation" is returning zero and "errno variable(in errno.h)" value is also zero. how can i detect whether a client socket is closed/active..?

client.c
Serv_Addr.sin_family = AF_INET;
Serv_Addr.sin_addr.s_addr = inet_addr("127.0.0.1");
Serv_Addr.sin_port = htons(26553);
if( 0 > connect (Serv_Fds,&Serv_Addr,sizeof(Serv_Addr)) )
{
perror("connect");
return 0;
[Code]....

View 3 Replies View Related

OpenSUSE Install :: MySQL Socket Change For 11.2 / Get The Socket To /var/run/mysql?

May 25, 2010

In looking at the release notes, I saw the comment File locations changes:

* MySQL socket file and pid file were moved from /var/lib/mysql to more reasonable location /var/run/mysql by default.

* MySQL log files are in /var/log/mysql. Not sure what I was supposed to do with that information. So I ignored it. Now, I am finding some issues with it. The web server works, but any connection to the database fails with 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (2)The thought dawned on me that maybe all my databases were erased and none set up. Going in to the terminal, I could connect and list and query the databases. So even though I backed them up, they still are there!

phpMyAdmin gives the same error message.

However, when I go into MySQL Administrator, it works fine.

I forgot where I saw it, but the socket is still set to var/lib/mysql. I could not find any mysql install log and would say what was in my cnf.my, but it still doesn't exist just as it has not in the past. Not sure if I should allow the MySQL Administrator to create it since I always ignored the prompt in the past and it worked. (Just wishing to keep the defaults)

At first I thought the upgrade upgraded the MySQL, but it's still 5.1.39 as I believe before. I've un-installed mysql-server and re-installed it with no change.

Can anyone can tell me how to get the socket to /var/run/mysql or what else is wrong? I read one place where mysql is supposed to set it up.

View 9 Replies View Related

Ubuntu :: VLC Not Starting - Main Interface Error: Socket Bind Error (Permission Denied)

Oct 17, 2010

I tried removing it and installing again but I still get the same code in the terminal:

[Code]....

View 3 Replies View Related

Programming :: Error With Socket Shared Between Functions?

Dec 21, 2010

Let's show the problem: I have a socked connection (in a fd var). In certain moment, I need to use the same socket in two threads. Lets see in the example:

Code: int main(void)
{
int fd; // the socket

[code]....

View 9 Replies View Related

Networking :: Unable To Open Socket (Not Available Error)

Aug 12, 2010

I've been tasked with transferring a Python web server from a Debian box to a Fedora server for work. (I think) I've been able to transfer all required files but I'm unable to run the web server because whenever I make the HTTPServer call in the python file I get an error "Cannot assign Requested Address".

I've basically traced the issue back to the server being unable to open a socket on the requested port (8085 in this case). I've checked netstat and there are no processes running on that port (or any other one I've tried for that matter) so wondering if there's a system configuration I need to do to allow programs to bind to sockets. Is there a deny configuration set up somewhere I need to modify? Does this even make sense?

View 1 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

Hardware :: PATA Socket Was Replaced With SATA Socket / Transfer Rate Of The Harddisk Would Be SATA Transfer Rate?

Jul 4, 2010

My friend bought an old hard drive. He noticed something with the hard drive that it was just replaced with a SATA socket. So meaning, the SATA socket was soldered to the PATA hard disk to replace the PATA socket to SATA socket to make it a SATA.

Now the question is:

1. Does the Transfer Rate of the harddisk (that has been replaced from PATA socket to SATA socket) would be SATA transfer rate? OR would still be PATA transfer rate?

View 4 Replies View Related

General :: ERROR 2002 (HY000): Can't Connect To Local MySQL Server Through Socket '/var/run/mysqld/mysqld.sock' (2)

Feb 24, 2011

I need some help.Trying to set up bugzilla on my VM.After setting up the IP to use static i could log on to the url its not even loading up from command line its issueing an error.when i try to log on to mysql

bugzilla:~# mysql -u root mysql] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

View 1 Replies View Related

Fedora :: Error - Cannot Connect To Server Socket Err = No Such File Or Directory

Apr 29, 2011

What is the magic that needs to be done to be able to record in audacity?

- Fedora 15 x86_64 2.6.35.12-88.fc14.x86_64
- SoundBlaster X-Fi card.
-I have added rpmfusion to yum repos.

When I start audacity the following is printed to the concole:

Code:

Cannot connect to server socket err = No such file or directory
Cannot connect to server socket
jack server is not running or cannot be started
Expression 'stream->capture.pcm' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 3653

View 5 Replies View Related

Ubuntu :: Boot Fails From HD - Error Getting Socket / Invalid Argument

Jun 20, 2011

I have an old PC with two hard drives (40 and 60Gb) and it uses dual IGhz pIII processors. It shares screen,mouse and keyboard with another PC.Both into Netgear modem. It ran ubuntu 8.04 and XP Pro on the drives above with no problems. Then I decided to try Mint 11 (34bit CD) - result after Grub blank screen other than flashing cursor at top left.No input from keyboard.
Tried Mint KDE 10 (34bit DVD) same result.
Tried Kubuntu 10 (CD) same result.
Reinstalled Ubuntu 8.04 no problem.
Upgraded via download from 8.04 to 10LTS hoping that this would somehow prevent the problem and have screen which says:-

starting up
[000000] ACPI no DMI BIOS year,ACPI =force is required to enable acpi
mount: mounting none on /dev failed: No such device
udevd[825]: error getting socket: Invalid argument
error initialising netlink socket
udevd[825] error initialising netlink socket
libudev: udev_monitor_new_from_netlink:error getting socket:Invalid argument
Segmentation fault
Gave up waiting for root device.Common problems:
Boot args (cat/proc/cmmdline)
Check root delay (Did the system wait long enough)
Check root (did the sytem wait for the right device)
Missing modules (cat/proc/modules; 1s /dev)
ALERT! dev/disc/by-uuid/"long number here" does not exist.Dropping to a shell.

Then it goes into Busybox and ends with "initramfs". I have tried altering the boot device in BIOS from HDD0 through 3 with the same result other than more bad language!

View 9 Replies View Related

Fedora Networking :: Vpnc / Getting Error Unable To Connect, Socket Is Unavailable?

Aug 3, 2010

I am having problems accessing my work desktop through my home computer running Fedora 13. I am able to remote into work through MAC and Windows XP. I loaded vpnc and was able to connect to the concentrator. I also able to ping it too. I cannot connect to my desktop using rdesktop. I get error message �Unable to connect, socket is unavailable. I cannot ping to the desktop.

View 2 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

Ubuntu Servers :: SSH Error: Read From Socket Failed: Connection Reset By Peer?

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

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

Apr 2, 2011

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2). I've had this problem to the point where I thought I messed up my actual configuration so bad that I reinstalled Ubuntu to get rid of all the MySQL configuration; I ran MySQL through Windows with a breeze, but I'm getting some errors like that after restarting my computer just a few minutes ago and I have not changed anything in my SQL settings. I'm on Ubuntu 10.10 64 bit and running MySQL 5.1. the actual error that I get from Navicat and from the website is at [URL]... Update: 20110402. Connection for controluser as defined in your configuration failed. Just got that when I tried to log in to phpmyadmin.

View 4 Replies View Related

Software :: Blocking Socket Vs Non-blocking Socket?

Mar 31, 2010

My question is quite simple:What are type of applications where socket in blocking mode can be used ?
And where non-blocking mode to be used ??

TCP is blocking by default.

View 2 Replies View Related

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

May 9, 2011

I have installed the mysql server on my ubuntu. I need to assign or reset the root password. I followed the article at http://www.ubuntugeek.com/reset-the-...-on-mysql.html. When I ran the command

[Code]....

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) what am i doing wrong, and explain to someone who almost has no experience with ubuntu. I am new to this.

View 1 Replies View Related

General :: Passing A Structure In A Socket?

Mar 31, 2011

So I'm trying to teach myself to write programs for unix in c. I am currently creating a program, and I need to pass a struct through a socket

The struct I want to pass has two types in it, one enum and one union of two other structs. These two other structs each contain an int and a char variablename[256] array.

gcc won't let me just pass the struct using write(pipefd[1], struct, size_of_struct) since the struct is not a char buffer. So that's my question...how does one go about passing a struct?

View 1 Replies View Related

General :: Using SCTP Socket In Red Hat Enterprise?

Mar 12, 2010

I want to use SCTP socket in red hat enterprise.

View 9 Replies View Related

General :: Determine Socket From /proc/cpuinfo?

Jan 13, 2010

Is there a simple way to determine the CPU socket from the output of /proc/cpuinfo. Determining the type of processor is simple enough, but the processor I have (Celeron) has two different possible sockets. The output of /proc/cpuinfo is:

processor : 0
vendor_id : GenuineIntel
cpu family : 15

[Code]...

I've looked on the Intel processor finder web site with appropriate filters, but the stepping values do not appear to match anything.

View 1 Replies View Related

General :: Get The Physical CPU Socket Count In RHEL?

Jun 30, 2011

We are working on our subscription renewal and now since Red Hat has changed their subscription model we need to give them the number of physical CPU sockets on each system.I have tried looking thru /proc/cpuinfo as well as tried to parse data out from dmidecode but both of those solutions count each individual core as a CPU.Is there a clean and easy way to determine the number of sockets on each system? We also use RHN Satellite to manage our systems but I believe that is pulling the same data from dmidecode

View 2 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







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