« Previous | Next » 

Revision 5cab728c

ID5cab728cf704f344b20149ba367b80fe26a49bb8
Parent f833e741
Child be65adf2

Added by Csaba Kiraly almost 8 years ago

fixing libevent2 and SIGPIPE error

program sometimes exited with
Program received signal SIGPIPE, Broken pipe.
0x085a989b in writev ()
(gdb) bt
#0 0x085a989b in writev ()
#1 0x080a7dd0 in evbuffer_write_iovec (buffer=0x75e, fd=<value optimized out>, howmuch=-12640) at buffer.c:1798
#2 0x080aa3f4 in evbuffer_write_atmost (buffer=0x8d5d2d8, fd=14, howmuch=1886) at buffer.c:1876
#3 0x080aa510 in evbuffer_write (buffer=0x8d5d2d8, fd=14) at buffer.c:1899
#4 0x080b4b3a in bufferevent_writecb (fd=14, event=4, arg=0x8d5d180) at bufferevent_sock.c:235
#5 0x080a39ea in event_process_active_single_queue (base=0x8d529d8, flags=<value optimized out>) at event.c:925
#6 event_process_active (base=0x8d529d8, flags=<value optimized out>) at event.c:978
#7 event_base_loop (base=0x8d529d8, flags=<value optimized out>) at event.c:1156
#8 0x08071227 in wait4data (n=0x8d53118, tout=0xffffd4b4, fds=0x0) at ../../GRAPES/net_helper-ml.c:564
#9 0x0806d123 in loop (s=0x8d53118, csize=1000000, buff_size=100) at loop.c:68
#10 0x080719be in main (argc=19, argv=0xffffd5c4) at streamer.c:232
in buffer.c

had been traced back to repo publish's TCP connection

This is the workaroud suggested in libevent2 forums .... hope it works.

git-svn-id: https://repository.napa-wine.eu/svn/napawine-software/trunk/GRAPES@2077 c54fac2e-1815-407e-9b96-088d06743913

Conflicts:

net_helper-ml.c

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences