f



write to socket broken pipe (32)

Hi,

The following function works 99.9% of the time, but every once in a
while, I get a valid socket connection but a failure on the write().
The errno=32 which I believe is a broken pipe. The code used to fail on
every interrupt (EINTR) signal, but from what I've read it seems this
can be expected and one should simply re-attempt the call to write() so
this code reflects that thinking. I've removed the read portion of the
function since it would just clutter things up for debugging purposes.

So what happens is every once in a while I get about 10 "write attempt"
messages followed by the "error on write" message with errno=32.

Any ideas?
Thanks,
Chris

int soapConnect ()
{
	int   sockfd;
	int   len, result;
	struct sockaddr_in address;
	struct hostent *hostinfo;

	hostinfo = gethostbyname(ACC_IP);
	if (!hostinfo) return(2);
	sockfd = socket(AF_INET, SOCK_STREAM,0);
	address.sin_family = AF_INET;
	address.sin_port = (80);
	address.sin_addr = *(struct in_addr *)*hostinfo -> h_addr_list;
	len = sizeof(address);

	if( (result = connect(sockfd, (struct sockaddr *)&address, len)) < 0 )
	{
    fprintf(stdout, "SOAP:\t:connect failed");
		close(sockfd);
    return(3);
	}

	do {
		  fprintf(stdout, "SOAP:\twrite attempt");
      result = write(sockfd, &soapString, sizeof(soapString));

      if( result < 1 && errno != EINTR ) {
        fprintf(stdout,"SOAP:\terror on write() errno=%d",errno);
        close(sockfd);
        return(4);
      }

      if( errno == EINTR ) {
        fprintf(stdout,"SOAP:\t:write interupted...tyring again");
        continue;
      }

      fprintf(stdout, "SOAP:\twrite success");
      break;
	} while(1);

	close(sockfd);
	return(1);
}

0
che10234 (3)
2/14/2006 4:42:58 PM
comp.unix.programmer 10848 articles. 0 followers. kokososo56 (350) is leader. Post Follow

9 Replies
9885 Views

Similar Articles

[PageSpeed] 18

che10234@hotmail.com wrote:
> Hi,
> 
> The following function works 99.9% of the time, but every once in a
> while, I get a valid socket connection but a failure on the write().
> The errno=32 which I believe is a broken pipe. The code used to fail on
> every interrupt (EINTR) signal, but from what I've read it seems this
> can be expected and one should simply re-attempt the call to write() so
> this code reflects that thinking. I've removed the read portion of the
> function since it would just clutter things up for debugging purposes.
> 
> So what happens is every once in a while I get about 10 "write attempt"
> messages followed by the "error on write" message with errno=32.
> 
> Any ideas?
About what ?
Your code seems fine. EINTR means the call was interrupted by a signal.
It's non fatal, and you should try again.
Provided ofcourse errno 32 is EINTR on your system.

Here errno 32 is EPIPE, you're trying to write to a broken/closed 
connection.
0
UTF
2/14/2006 5:13:37 PM
But why is the errno 32 happening? Is this just to be expected every
once in a while on a busy unix system?

On error 32 would it make sense to close the connection and start over
with a new socket? Or is the error being caused by some flaw in the
code that should be corrected?

Thanks for the reply Nils.

0
che10234
2/14/2006 5:24:16 PM
> But why is the errno 32 happening? Is this just to be expected every
> once in a while on a busy unix system?

First, find out which error corresponds to errno 32 on your system.
In the future, you should use perror() or strerror() in your code to
get better error messages. For now, one quick way to translate an
errno number into a real error message from the command line is:

$ perl -le '$!=32;print$!'

On my system, this prints "Broken pipe" -- i.e. EPIPE. Your question
makes much less sense if errno 32 is EPIPE on your system as well.

b
0
blr
2/14/2006 6:58:55 PM
Hi Brian,

errno 32 is "Broken pipe" on my system (solaris) as well, but why would
this make my question make less sense?

Let me re-phrase.
- is it normal to get broken pipes? if so I shouldn't waste too much
time trying to find the cause , but instead just close the socket and
try again ?

- maybe the pipe is broken on the other end, is there a way to check
this from my end? Maybe more information is available other than
errno=32 ?

Thanks for the help.
Chris

1
che10234
2/14/2006 7:36:51 PM
che10234@hotmail.com writes:

>Let me re-phrase.
>- is it normal to get broken pipes? if so I shouldn't waste too much
>time trying to find the cause , but instead just close the socket and
>try again ?

Yes; if the other end closes the connection then that is what happens.

Casper
-- 
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
0
Casper
2/14/2006 7:41:59 PM
che10234@hotmail.com wrote:
> Hi Brian,
> 
> errno 32 is "Broken pipe" on my system (solaris) as well, but why would
> this make my question make less sense?
> 
> Let me re-phrase.
> - is it normal to get broken pipes? if so I shouldn't waste too much
Sure. You get that when the remote peer dies, and your end eventually
discovers this, and you write to the socket. Or the peer disconnected, 
and you didn't detect it, but still writes to it.
0
ISO
2/15/2006 7:39:18 AM
Nils O. Sel=E5sdal wrote:
> che10234@hotmail.com wrote:
> > Hi Brian,
> >
> > errno 32 is "Broken pipe" on my system (solaris) as well, but why would
> > this make my question make less sense?
> >
> > Let me re-phrase.
> > - is it normal to get broken pipes? if so I shouldn't waste too much
> Sure. You get that when the remote peer dies, and your end eventually
> discovers this, and you write to the socket. Or the peer disconnected,
> and you didn't detect it, but still writes to it.


Thanks for the help everyone!

0
che10234
2/15/2006 1:35:26 PM
On Tue, 14 Feb 2006 08:42:58 -0800, che10234 wrote:

> int soapConnect ()
> {
[...]
>       result = write(sockfd, &soapString, sizeof(soapString));

 Note that you are assuming that write() will either send all of it's data
or none of it ... write() doesn't work like that.

-- 
James Antill -- james@and.org
http://www.and.org/and-httpd

0
James
2/23/2006 5:32:42 PM
<che10234@hotmail.com> wrote in message 
news:1139945811.456248.130180@g14g2000cwa.googlegroups.com...

> Hi Brian,
>
> errno 32 is "Broken pipe" on my system (solaris) as well, but why would
> this make my question make less sense?
>
> Let me re-phrase.
> - is it normal to get broken pipes? if so I shouldn't waste too much
> time trying to find the cause , but instead just close the socket and
> try again ?

    It's normal. It means that there was some underlying error on the 
connection and you aren't doing what you need to do to figure out what that 
underlying error is. You may be able to tell what the real error is with 
'getsockopt(SO_ERROR)' or by reading instead of writing.

    DS


0
David
2/23/2006 11:40:57 PM
Reply:

Similar Artilces:

Netbackup 6 problem
Dear, We have a problem with 2 servers running Solaris 10 and Netbackup. When we try to backup our client we always get errorstatus 24 after backing up 7GB or 34GB or 67GB or random GB of data.(it's gives a broken pipe after a while.) Networksettings are equal and it's fixed 1000Mbps full duplex on the switch and servers. Can someone gives us tips or solutions? Thx Greetings, Tijs I'd suggest turning up your logging levels to the maximum level (5) on the clients, and creating all the necessary directories under /usr/openv/netbackup/logs/ especially bprd and bpbkar. This will tell you what the last file that was attempted to be backed up was, which could be helpful. Also, check for bpbkar processes that may be hung and/or still running. If there are, which I'm guessing there might be, do a truss -p on the pid and see what they are doing. My most recent run in with this problem was due to volmgt being confused and the /vol directory being a bad state. An ls -l on root would hang trying to stat that directory. Simply doing a umount -f /vol and restarting volmgt corrected the issue. HTH, Nate solarisgeek wrote: > Dear, > > We have a problem with 2 servers running Solaris 10 and Netbackup. > When we try to backup our client we always get errorstatus 24 after > backing up 7GB or 34GB or 67GB or random GB of data.(it's gives a > broken pipe after a while.) > Networksettings are equal and it&...

broken pipe when reading and writing a pipe
hi I am trying to do a simple task: I have a buffer, I want to write this buffer as the stdin of a command, say "tac", and capture the output from the stdout and save to another buffer. after searching examples and playing a little bit, I wrote the a function (see below). However, it gave me a "Broken pipe" error when I ran the code. Can someone point out to me what was wrong? your help is greatly appreciated! Qianqian int pipemydata(void *inbuf, long inlen, void *outbuf, long *outlen){ int fd[2]; int childid; *outlen=0; if(pipe(fd)==-1...

"broken pipe" while reading/writing stream-based sockets
Ciao, I'm still having problems while doing sockets read/write. I have a server that often crashes with error "Broken Pipe". The server works always with the same clients and many times it doesn't crash until something happens that I don't understand. This is the server code: -- file tcp_server.adb with GNAT.Sockets; use GNAT.Sockets; with Ada.Text_IO; use Ada.Text_IO; procedure TCP_Server is Socket : Socket_Type; Client : Socket_Type; Sock_Addr : Sock_Addr_Type; Cli_Addr : Sock_Addr_Type; L : constant Positive := 5; Channel : Stream_Access; S : String( 1 .. 80 ); begin Initialize; Create_Socket( Socket ); Set_Socket_Option( Socket, Socket_Level, ( Reuse_Address, True ) ); Sock_Addr.Addr := Inet_Addr( "127.0.0.1" ); Sock_Addr.Port := 9876; Bind_Socket( Socket, Sock_Addr ); Listen_Socket( Socket, L ); Put_Line( "Server in attesa di connessioni..." ); loop Accept_Socket( Socket, Client, Cli_Addr ); Channel := Stream( Client ); String'Read( Channel, S ); String'Write ( Channel, ( "Ricevuto " & S ) ); Put_Line( "Client ha inviato codice """ & S & """" ); Free( Channel ); Close_Socket( Client ); if S( 1 .. 4 ) = "kill" then Put_Line( "Sono stato ucciso" ); exit; ...

write(spawn_id=]: broken pipe
I have written a small expect script to telnet a FreeBSD machine and send some commands to that machine remotely, through Windows XP machine These commands are being sent periodically in a loop. After sending few command , the scripts throws the following exception: write(spawn_id=]: broken pipe while executing "send -s "ipfw pipe 1 config delay $mod_delay \r"" invoked from within "expect -nobrace 1# { for { set cycle 0 } { $cycle < $no_of_cycles } {incr cycle } { puts "###..." invoked from within "expect { "1#" { for { set cycle 0 } { $cycle < $no_of_cycles } {incr cycle } { Can anybody please let me know the cause for this. Is this issue of the freeBSD machine or my PC. Can what can be the workaround for this Extract from my script: .. .. expect { "1#" { for { set cycle 0 } { $cycle < $no_of_cycles } {incr cycle } { puts "##### CYCLE NUMBER -- $cycle #####" while { $delay <= $max_delay } { set mod_delay [join "$delay ms" ""] puts stdout "\nDelay set to $mod_delay\n" send -s "ipfw pipe 1 config delay $mod_delay \r" set delay [expr $delay + $incr_delay] after $wait ...

Need help with a simple UNIX sockets server based on IO::Socket::UNIX
Hi. I've tried to create a simple client + server that communicate through a unix socket. As with all socket servers, it has a loop where it waits for connections: while ($client = $sock->accept()) { # handle client here } The problem is that $sock->accept() is returning undef on each alternate client connection with error "No child processes". I made this temporary workaround that does work but of course I must be screwing up somewhere else: while ($client = $sock->accept() || $client = $sock->accept()) { # handle client here } I hope someone can help or provide an example. I've included the client + server code below for those who are interrested in taking a peek. Thanks, Craig Manley ############ client ############ #!/usr/bin/perl -w use strict; use IO::Socket; my $sockname = 'mysocket'; my $client = IO::Socket::UNIX->new('Peer' => $sockname, 'Type' => SOCK_STREAM, 'Timeout' => 50) or die "$0: error connecting to '$sockname': $ [at] \n"; my $pid = fork(); unless(defined($pid)) { die("Fork this! I cannot forking fork!\n"); } if ($pid) { write_sock(); waitpid($pid, 0); } else { read_sock(); } sub write_sock { for (1..10) { print $client "testline number $_\n"; # print to socket } print $client "\n"; # empty line causes server to terminate connection p...

putbody: write error: Broken pipe
I need some help to determine what is causing this error: Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: SYSERR(root): putbody: write error: Broken pipe Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 0: fl=0x0, mode= 20666: CHR: dev=3/1, ino=60251, nlink=1, u/gid=0/0, size=0 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 1: fl=0x1, mode= 20666: CHR: dev=3/1, ino=60251, nlink=1, u/gid=0/0, size=0 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 2: fl=0x1, mode= 20666: CHR: dev=3/1, ino=60251, nlink=1, u/gid=0/0, size=0 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 3: fl=0x2, mode= 140777: SOCK localhost->[[UNIX: /dev/log]] Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 5: fl=0x0, mode= 100600: dev=3/6, ino=356945, nlink=1, u/gid=0/105, size=1724 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 6: fl=0x8000, mode= 100644: dev=3/5, ino=94092, nlink=1, u/gid=1980/50, size=45056 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 7: fl=0x8000, mode= 100640: dev=3/1, ino=24483, nlink=1, u/gid=0/105, size=12288 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 8: fl=0x1, mode= 100600: dev=3/6, ino=2310157, nlink=1, u/gid=0/105, size=1178 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 9: fl=0x1, mode= 10600: FIFO: dev=0/7, ino=230778035, nlink=1, u/gid=0/105, size=0 Feb 13 20:02:03 mail sm-mta[16758]: m1E21s3g016577: 10: fl=0x0, mode= 10600: FIFO: dev=0/7, ino=230778036, nlink=1, u/gid=0/105, size=0 Feb 13 20:02:03 mail...

[VxW] Socket Broken pipe Error
Hi All, How to solve the Socket Send Error Broken pipe 32 (0x20) ... Send also crashes after some time when i send large amount of data continuously in vx-works 5.4 i am not using SELECT ...... Obviously I am doing something wrong and would appreciate any help THANKS JITHESH ...

IOError: [Errno 32] Broken pipe #2
I have a problem with the logging module. It reports a Broken Pipe error after outputing to the log file occasionally (5%). This does not appear to happen on Mac OSX using current finked python (2.3.3) but does appear to occur on Python 2.3.4 running on a very old Redhat Linux xxxxx 2.2.14-5.0 #1 Tue Mar 7 21:07:39 EST 2000 i686. The actual logged error follows my signature. Note that "files used:-" has been sent to the file. From a previous suggestion I had the following lines in my logger setup. import logging import signal import types logger = logging.getLogger('path...

Programmers, Programmers, Programmers, ...
As Steve Balmer correctly stated, while making his monkey dance, it is applications and hence programmers that make a platform. The fact though is that if you want to do professional programming, then Linux is the platform for you. I know that this statement will get the heckels up on a lot of trolls in C.O.L.A, but I have a recent experience that proves this. I am currently working for a Windows only house producing a system that receives and transmits around 1000 telegrams per second in each direction on a UDP socket, translates them into a different format and creates a log entry for each ...

Error 32
Error: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner self.run() File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run already_pickled=True) File "/usr/lib/python2.7/dist-packages/spyderlib/utils/bsdsocket.py", line 24, in write_packet sock.send(struct.pack("l", len(sent_data)) + sent_data) error: [Errno 32] Broken pipe Code : #code s=1 f=0 c=0 for i in range (1,100): c=0 for j in (1,i): s+=j c=0 for k in range(1,(s/2+1)): #print s t=s%k if t==0: c+=1 if c>=5: f=1 print s break print s #code ends. The program is runnning. It has been more than 10 minutes ( currently). Should I raise my hopes for an answer ? 2012.09.04. 19:08 keltez�ssel, Sreenath k �rta: > Error: > > > Exception in thread Thread-1: > Traceback (most recent call last): > File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner > self.run() > File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py", line 575, in run > already_pickled=True) > File "/u...

write unsigned integer 32 bits to socket
hi i want to send unsigned 32 bit integer to socket, and looking for something equivalent to this method... http://livedocs.adobe.com/flex/2/langref/flash/net/Socket.html#writeUnsignedInt() is there such method / library available in python?! this is as far as i have gotten along >>> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) >>> s.connect(('127.0.0.1',3000)) rkmr.em@gmail.com wrote: > hi > i want to send unsigned 32 bit integer to socket, and looking for > something equivalent to this method... > > http://livedocs.adobe.com/flex/2/lang...

Threads reading from sockets & writing into a pipe
Hi to all! As from subject, I have inside a process some threads that communicate, each of them, with distinct socket streams. Also, after reading data from socket each thread must write that data into a pipe (created by the process). Now, I got that running the code each thread reads (from the socket) and writes (into the pipe) exactly 1 byte (!) of data, concurrently; sometimes more than 1 byte (4 at all). Is there any problem calling a function in a thread that uses a read() function on a socket descriptor? If no, does anybody know the reasons ? Please, help me! Thanks a lot, S c o u t. "scout" <user@domain.it> wrote in message news:UtLvb.138709$e6.4980008@twister2.libero.it... > Hi to all! > As from subject, I have inside a process some threads > that communicate, each of them, with distinct socket streams. By "distinct", do you mean that each thread has its own stream? > Also, after reading data from socket each thread must write > that data into a pipe (created by the process). > Now, I got that running the code each thread reads (from the socket) > and writes (into the pipe) exactly 1 byte (!) of data, concurrently; > sometimes more than 1 byte (4 at all). Okay. Is the socket TCP, UDP or what? Are you talking about reading or writing more than 1 byte? If you only want to read or write one byte, just only ask for one byte. > Is there any problem calling a fun...

timeout writing message to hostname: Broken pipe
I can't find more than one other person with the same error on Sendmail 8.13.6, and he doesn't come with a resolution or a closer definition of the problem, so I guess I have to try and ask myself. I have upgraded some Solaris 9 DMZ hosts from Sendmail 8.13.1 to 8.13.6. Since then, every once in a while a message arrives which Sendmail can't deliver to the internal gateway hosts, with the Broken pipe error as the result. Since I have a FallbackMX host defined on the hosts in question, the mail at once gets sent to the Fallback, which in turn sends it back to one of the original hosts, which in turn try to send it onwards in and so on and so on. Every once in a while, it seems like the receiving internal gateway host actually receives the complete email and send it onwards, but the DMZ host doesn't get this so it keeps on with it's looping and trying. The result is not only a mail which cannot be delivered, but a mail that get's duplicated. The internal gateway hosts originally ran 8.13.1, when I came upon this problem I upgraded them as well to 8.13.6 (they also run Solaris), but the problem persists. So the 8.13.6 on Solaris DMZ hosts can't send to 8.13.1 or 8.13.6 on Solaris internal gw, but it can send the same message to 8.13.1 on RedHat Linux. As I mentioned, this occurs for specific messages, if I pull the message (qf and df file) off the queue, I can put it back later and get the same problem. For every problem message, we deal with a co...

PuTTY and unix domain sockets / windows named pipe
It is nice to see if PuTTY can work with unix domain sockets / windows named pipe. Regards, Roy roytam@gmail.com writes: >It is nice to see if PuTTY can work with unix domain sockets / windows >named pipe. PuTTY doesn't directly support this. However, it does support a "local proxy" where input/output come from a process' standard input / output. <http://www.tartarus.org/~simon/puttydoc/Chapter4.html#config-proxy> If you can find a command which will connect that to a Unix domain socket / named pipe, you should be fine. 0.58 supports this...

socket broken pipe error on sending huge data.
Dear All, I have developed a simple client server application, the server needs to send around 1.5 MB of data to the client for each transaction continously. But the server is only able to send only 81660 bytes of data and throws "ERROR writing to socket: Broken pipe" 1) Cannot we send huge data through sockets and that too continously ? 2) What can be possible reason for this issue? 3) How to resolve the same? 4) Any code snippet will be of great use. I am a NO expert in this area, so all comments are most welcome. /////// SERVER CODE SNIPPET/// int serverConnection() { int sockfd, newsockfd, portno, clilen; char buffer[256]; struct sockaddr_in serv_addr, cli_addr; int n; sockfd = socket(AF_INET, SOCK_STREAM, 0); if (sockfd < 0) error("ERROR opening socket"); bzero((char *) &serv_addr, sizeof(serv_addr)); portno = 5902; serv_addr.sin_family = AF_INET; serv_addr.sin_addr.s_addr = INADDR_ANY; serv_addr.sin_port = htons(portno); if (bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr)) < 0) error("ERROR on binding"); listen(sockfd,5); clilen = sizeof(cli_addr); newsockfd = accept(sockfd, (struct sockaddr *) &cli_addr, &clilen); if (newsockfd < 0) error("ERROR on accept"); bzero(buffer,256); n = read(newsockfd,buffer,255); if (n < 0) error("ERROR re...

mercury 32 server windows 2003 socket write error
Hello, I'm getting a socket write error when using Mercury/32 Mail server on a win2k3 server. When outside smtp mail attempts to be delivered I get a Socket write error 10054 and the connection is terminated and no mail is delivered. I apologize in advance if this topic has already been covered. Thank you, Bryce Freeman --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003 [POSTED TO comp.mail.pegasus-mail.ms-windows - REPLY ON USENET PLEASE] ...

Scattered-write with sendto() un a SOCK_DGRAM Unix Domain Socket
Hi to everyone, I'd like to do a scattered write, like with writev() on a Unix Domain Socket. The problem is, since the socket is of SOCK_DGRAM type, and thus unconnected, writev will fail saying "Transport endpoint is not connected". I checked in the man pages and yes, write() and writev() will not work on datagram-type sockets. The question is: is there a way to perform a scattered write on a datagram Unix Socket? I don't know why it shouldn't be, but I wouldn't be surprised if Linux API were lacking also of this possibility. I use kernel 2.6.10. Thanks, Regards,...

openssh session hanging
it occurs once or twice per day , any suggestion if this is openssh random number incompatibility issue ? Thank you for help in advance !!! server:Sun Enterprise E4500/E5500System SunOS 5.7 Generic_106541-32 sun4u sparc SUNW,Ultra-Enterprise sshd version OpenSSH_3.7.1p2 part of the /var/adm/messages Nov 9 09:51:19 ashipts prngd[671]: write() in socket_write() failed: Broken pipe Nov 9 09:51:19 ashiptslast message repeated 30 times Nov 9 09:51:19 ashipts prngd[671]: closing service fd 15 for error. Hi! Stan Walczak <stanislaw.walczak@sympatico.ca> wrote: > it occurs once or twice per day , any suggestion if this is > openssh random number incompatibility issue ? What version of prngd is that? prngd-0.9.26 had a bug that could lead to such problems. Ciao Thomas -- Thomas Binder (Gryf @ IRCNet) gryf+usenet@hrzpub.tu-darmstadt.de PGP-key available on request! ...

milter error write(L) returned -1, expected 50: Broken pipe
Hi, I found the following error many times but only from the same sending server in my sendmail log (never seen before, 2000K mails since setup): --------------------------- Aug 19 12:22:17 server milter-greylist: p7JAME8U015316: addr 83.19.xx.xx from <sender@domain.de> rcpt <recip@mydomain.de>: autowhitelisted for another 768:00:00 Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: from=<sender@domain.de>, size=125990, class=0, nrcpts=1, msgid=<@OF45480D59.66ADE979-ONC12578F1.00339A09- C12578F8.00294A3Adomain.de>, proto=ESMTP, daemon=MTA-v4, relay=domino.domain.de [88.79.xx.xx] Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter (greylist): write(L) returned -1, expected 50: Broken pipe Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter (greylist): to error state Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter (mimedefang): write(L) returned -1, expected 50: Broken pipe Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter (mimedefang): to error state Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: Milter: data, reject=451 4.3.2 Please try again later Aug 19 14:51:45 server sm-mta[15316]: p7JAME8U015316: to=<recip@mydomain.de>, delay=02:29:28, pri=155990, stat=Please try again later --------------------------- my /etc/mail/sendmail.mc --------------------------- INPUT_MAIL_FILTER(`greylist',`S=local:/var/run/milter-greylist/milter- greylist.sock, F=, T=S:1m;R:1m')dnl INPUT_MAIL_FILTER(...

Socket problem: read & write to same socket
I want to establish connection to a server(written by myself in Go language= ), read from socket, and then write into socket. The connection can be established, and it reads correctly. But after that a= nd when I want to write to socket, it closes the connection. I used wiresha= rk to listen to the packets. I saw my program sent a FIN to the server side= .. So the server receives nothing.=20 Note that the server side only sends one line into socket. I later wrote a server in Java and a client in Go. They work fine in both r= ead and write. Thanks in advance! import java.io.BufferedReade...

Socket broken due to socket resource leak???
It is really a triky problem. My OS is windows 98, ruby version is ruby 1.8.2 (2004-12-25) [i386-mswin32]. Following code is used to illustrate the problem I encountered. Before you execute it, please ensure to be offline, so it can be run very fast .. Please notice the line in tcpclient.rb "145.times do", it is the key issue. Let me explain it. Tcpserver.rb is a local tcp server simply sends a hello message whenever a client is connected. Tcpclient.rb first makes a connect to the local tcp server( this connection will be read later), then tries many times to connect to a bad ip addresses which indeed can never be connected. So every try will raise a exception " Unknown Error - connect(2)". This exception is simply ignored and the client continues trying. The wiered thing is , after certain number of tries, the established connection between the tcp client and the local tcp server is broken. So the line "goodConn.gets" also raises a exception . Even more, what exception "goodConn.gets" raised is realted to the number of tries to connect to the bad ip. a. if times is less than 140 , it acts normally, nothing wrong, a hello message is received from the local tcp server. I got this: Exception raised: Unknown Error - connect(2) Hello from local tcp server b. If 140< times <145, I got this : Exception raised: Unknown Error - connect(2) tcpclient.rb:19:in `gets': Bad file descriptor (Errno::EBADF) from tcpclient.rb:...

Unix domain socket (AF_UNIX) support for Java sockets
Hi all, Java doesn't support AF_UNIX (Unix domain sockets) in their socket implementation as far as I can tell. Sun has an RFE (4145756) logged against Java that notes: "The existing java socket model is far too specific to IP and there is no straight forward way to use a UNIX domain socket (or a Windows named pipe) in the existing system. As far as I can tell we need a greater degree of abstraction for the concept of a socket address so that a socket can be created for IP or another domain either explicitly or simply by the type of the address, e.g. [ ... ] A socket implementation factory could be choosen based on the type of address." Does anyone know of / have code that supports AF_UNIX for Java sockets? Chris ...

Broken Pipe
Hello, I am getting "Broken Pipe" messages displayed every few seconds when I'm logged into Citrix. Oddly enough, after I disconnect and reconnect my home drive (sometimes takes a few tries), it disappears. What could be causing this issue? Thanks in advance. Any ideas? This has been eating at me for weeks now :-( ...

Write-Only Socket
Hello together, I am trying to write a little tcp-server which creates a write only socket an test it with a little client. The code I have tried so far is below and it workes as expected in the form I posted it. The question is: Why do I have to shutdown(0) $session _and_ $socket on the server? I had expected that the client would not be able to write to his $socket if only $session on the server was shutdown(0) --- server code --- #!/usr/bin/perl use warnings; use strict; use IO::Socket; my $socket = IO::Socket::INET->new( Listen => 1, LocalPort => 1025, Pro...

Web resources about - write to socket broken pipe (32) - comp.unix.programmer

AC power plugs and sockets - British and related types - Wikipedia, the free encyclopedia
Plugs and sockets for portable appliances originated in Britain in the 1880s and were initially two pin designs. These were usually sold as a ...

usb charger to fit a car lighter socket - Flickr - Photo Sharing!
Made a quick l7805 (think minty boost) charger for some gadgets. Runs from a car cigarette lighter plug, and outputs 5vdc to a female usb socket. ...

Mitch Robinson lied to Carlton about incident that left him with a broken eye socket
Mitch Robinson lied to Carlton officials when asked why he had suffered a broken eye socket during a scuffle in the early hours of Sunday morning. ...

Brisbane Broncos forward Alex Glenn facing six weeks on sideline with fractured eye socket
Wayne Bennett ranks Brisbane fullbacks as Justin Hodges injury leaves Broncos with fifth choice rookie

iDevices adds new Siri-controlled wall outlets, switches and light sockets to its HomeKit lineup
... HomeKit-compatible products with four new gadgets that make home automation even easier. The Apple accessory maker is showing off its new Socket, ...

ASRock Rack Announces EP2C612D24 and 4L: Dual Socket Haswell-EP with 24 DDR4 Slots
... 16GB UDIMMs, this allows for a maximum of 384GB, although moving up to RDIMM, LRDIMMs or 64GB NVDIMMs pushes the max to 1.5TB in a dual socket ...

Windows Server 2016 moving to per core, not per socket, licensing
... until the second half of next year, is going to shake up the way Microsoft licenses its server operating system, moving away from per socket ...

Dell Aims Four-Socket Server at Modern Database Hardware Needs
... out a greater percentage of the high-end server market, such as in-memory database hardware requirements, Dell today unveiled a four-socket ...

Video: Socket To Me! Nitwit At ‘Hand To God’ Tries To Charge Phone On Set
... on a performance of Hand To God at Broadway ’s Booth Theatre a few days ago, this patron leapt onstage and tried to plug his phone into a socket ...

Deal: Get a Bayit Smart Wi-Fi Socket for Just $40, Free Shipping Included
Over on the DL Deals Store , you can currently pick up a fancy new Bayit Smart WiFi Socket for just $39.99, down from its usual price of $55. ...

Resources last updated: 3/27/2016 5:23:59 PM