Hex Artifact Content
Not logged in

Artifact f453aa5688c82651ea6354a6a477ec3eac760ef4:

Ticket change [f453aa5688] - Ticket [bc0d0f5642] Communication failure does not lead to exit(EXIT_FAILURE) status still Open with 2 other changes by martin.weber 2011-08-17 02:20:43.
0000: 44 20 32 30 31 31 2d 30 38 2d 31 37 54 30 32 3a  D 2011-08-17T02:
0010: 32 30 3a 34 33 2e 30 35 39 0a 4a 20 2b 63 6f 6d  20:43.059.J +com
0020: 6d 65 6e 74 20 5c 6e 5c 6e 3c 68 72 5c 73 2f 3e  ment \n\n<hr\s/>
0030: 3c 69 3e 6d 61 72 74 69 6e 2e 77 65 62 65 72 5c  <i>martin.weber\
0040: 73 61 64 64 65 64 5c 73 6f 6e 5c 73 32 30 31 31  sadded\son\s2011
0050: 2d 30 38 2d 31 37 5c 73 30 32 3a 32 30 3a 34 33  -08-17\s02:20:43
0060: 5c 73 55 54 43 3a 3c 2f 69 3e 3c 62 72 5c 73 2f  \sUTC:</i><br\s/
0070: 3e 5c 6e 49 53 54 4d 5c 73 28 62 79 5c 73 6c 6f  >\nISTM\s(by\slo
0080: 6f 6b 69 6e 67 5c 73 61 74 5c 73 73 72 63 2f 68  oking\sat\ssrc/h
0090: 74 74 70 5f 74 72 61 6e 73 70 6f 72 74 2e 63 29  ttp_transport.c)
00a0: 5c 73 74 68 61 74 5c 73 65 72 72 6f 72 73 5c 73  \sthat\serrors\s
00b0: 66 72 6f 6d 5c 73 74 68 65 5c 73 63 6f 6d 6d 75  from\sthe\scommu
00c0: 6e 69 63 61 74 69 6f 6e 5c 73 6f 6e 5c 73 65 69  nication\son\sei
00d0: 74 68 65 72 5c 73 6c 65 76 65 6c 5c 73 28 68 74  ther\slevel\s(ht
00e0: 74 70 3b 5c 73 73 6f 63 6b 65 74 29 5c 73 77 69  tp;\ssocket)\swi
00f0: 6c 6c 5c 73 6e 6f 74 5c 73 67 65 74 5c 73 70 72  ll\snot\sget\spr
0100: 6f 70 61 67 61 74 65 64 5c 73 74 6f 5c 73 74 68  opagated\sto\sth
0110: 65 5c 73 73 74 61 74 65 5c 73 28 73 74 72 75 63  e\sstate\s(struc
0120: 74 5c 73 73 74 61 74 65 5c 73 69 6e 5c 73 74 68  t\sstate\sin\sth
0130: 65 5c 73 67 69 76 65 6e 5c 73 66 69 6c 65 29 3b  e\sgiven\sfile);
0140: 5c 73 61 6e 64 5c 73 61 73 5c 73 74 68 65 5c 73  \sand\sas\sthe\s
0150: 66 75 6e 63 74 69 6f 6e 73 5c 73 74 68 61 74 5c  functions\sthat\
0160: 73 61 72 65 5c 73 64 6f 69 6e 67 5c 73 74 68 65  sare\sdoing\sthe
0170: 5c 73 28 68 74 74 70 5c 73 74 72 61 6e 73 70 6f  \s(http\stranspo
0180: 72 74 29 5c 73 77 6f 72 6b 5c 73 64 6f 5c 73 6e  rt)\swork\sdo\sn
0190: 6f 74 5c 73 72 65 74 75 72 6e 5c 73 61 5c 73 73  ot\sreturn\sa\ss
01a0: 74 61 74 75 73 5c 73 69 6e 64 69 63 61 74 6f 72  tatus\sindicator
01b0: 5c 73 77 68 65 74 68 65 72 5c 73 6f 72 5c 73 6e  \swhether\sor\sn
01c0: 6f 74 5c 73 6f 70 65 72 61 74 69 6f 6e 73 5c 73  ot\soperations\s
01d0: 77 6f 72 6b 65 64 5c 73 28 72 65 74 75 72 6e 69  worked\s(returni
01e0: 6e 67 5c 73 76 6f 69 64 5c 73 69 6e 73 74 65 61  ng\svoid\sinstea
01f0: 64 5c 73 6f 66 5c 73 69 6e 74 2c 5c 73 73 73 69  d\sof\sint,\sssi
0200: 7a 65 5f 74 5c 73 6f 72 5c 73 74 68 65 5c 73 6c  ze_t\sor\sthe\sl
0210: 69 6b 65 29 5c 73 74 68 65 5c 73 63 61 6c 6c 65  ike)\sthe\scalle
0220: 72 5c 73 77 6f 6e 27 74 5c 73 6b 6e 6f 77 2e 5c  r\swon't\sknow.\
0230: 73 5c 72 5c 6e 5c 72 5c 6e 46 6f 72 5c 73 65 72  s\r\n\r\nFor\ser
0240: 72 6f 72 5c 73 68 61 6e 64 6c 69 6e 67 2c 5c 73  ror\shandling,\s
0250: 74 68 65 72 65 5c 73 69 73 5c 73 61 63 63 65 73  there\sis\sacces
0260: 73 5c 73 74 6f 5c 73 74 68 65 5c 73 65 72 72 6f  s\sto\sthe\serro
0270: 72 5c 73 63 6f 64 65 5c 73 2f 5c 73 6d 65 73 73  r\scode\s/\smess
0280: 61 67 65 5c 73 6f 6e 5c 73 74 68 65 5c 73 73 6f  age\son\sthe\sso
0290: 63 6b 65 74 5c 73 6c 61 79 65 72 2c 5c 73 62 75  cket\slayer,\sbu
02a0: 74 5c 73 61 73 69 64 65 5c 73 66 72 6f 6d 5c 73  t\saside\sfrom\s
02b0: 22 6e 6f 74 5c 73 68 61 76 69 6e 67 5c 73 61 5c  "not\shaving\sa\
02c0: 73 73 6f 63 6b 65 74 5c 73 6f 70 65 6e 22 5c 73  ssocket\sopen"\s
02d0: 6e 6f 5c 73 65 72 72 6f 72 5c 73 73 74 61 74 65  no\serror\sstate
02e0: 5c 73 67 65 74 73 5c 73 70 72 6f 70 61 67 61 74  \sgets\spropagat
02f0: 65 64 5c 73 74 6f 5c 73 74 68 65 5c 73 68 74 74  ed\sto\sthe\shtt
0300: 70 2f 74 72 61 6e 73 70 6f 72 74 5c 73 63 6f 64  p/transport\scod
0310: 65 5c 73 6c 61 79 65 72 5c 73 41 46 41 49 43 53  e\slayer\sAFAICS
0320: 2e 5c 72 5c 6e 5c 72 5c 6e 63 6c 69 65 6e 74 5f  .\r\n\r\nclient_
0330: 73 79 6e 63 28 29 5c 73 73 74 69 6c 6c 5c 73 72  sync()\sstill\sr
0340: 65 74 75 72 6e 73 5c 73 74 68 65 5c 73 61 6d 6f  eturns\sthe\samo
0350: 75 6e 74 5c 73 6f 66 5c 73 65 72 72 6f 72 73 5c  unt\sof\serrors\
0360: 73 74 68 61 74 5c 73 68 61 76 65 5c 73 61 63 63  sthat\shave\sacc
0370: 75 6d 75 6c 61 74 65 64 5c 73 64 75 72 69 6e 67  umulated\sduring
0380: 5c 73 61 74 74 65 6d 70 74 69 6e 67 5c 73 74 68  \sattempting\sth
0390: 65 5c 73 73 79 6e 63 5c 73 28 77 69 74 68 5c 73  e\ssync\s(with\s
03a0: 6e 6f 74 5c 73 68 61 76 69 6e 67 5c 73 61 5c 73  not\shaving\sa\s
03b0: 73 6f 63 6b 65 74 5c 73 63 6f 6e 6e 65 63 74 69  socket\sconnecti
03c0: 6f 6e 5c 73 62 65 69 6e 67 5c 73 6f 6e 65 5c 73  on\sbeing\sone\s
03d0: 6f 66 5c 73 74 68 65 5c 73 70 6f 74 65 6e 74 69  of\sthe\spotenti
03e0: 61 6c 5c 73 65 72 72 6f 72 73 29 2c 5c 73 62 75  al\serrors),\sbu
03f0: 74 5c 73 74 68 65 5c 73 72 65 74 75 72 6e 5c 73  t\sthe\sreturn\s
0400: 76 61 6c 75 65 5c 73 66 72 6f 6d 5c 73 69 74 5c  value\sfrom\sit\
0410: 73 69 73 5c 73 62 65 69 6e 67 5c 73 69 67 6e 6f  sis\sbeing\signo
0420: 72 65 64 5c 73 69 6e 5c 73 63 61 6c 6c 65 72 73  red\sin\scallers
0430: 5c 73 70 75 6c 6c 2f 70 75 73 68 2f 73 79 6e 63  \spull/push/sync
0440: 5f 63 6d 64 2e 5c 73 53 6f 5c 73 74 68 65 5c 73  _cmd.\sSo\sthe\s
0450: 70 61 74 68 5c 73 74 6f 5c 73 66 69 78 69 6e 67  path\sto\sfixing
0460: 5c 73 74 68 69 73 5c 73 70 72 6f 62 6c 65 6d 5c  \sthis\sproblem\
0470: 73 77 6f 75 6c 64 5c 73 62 65 5c 73 74 6f 5c 73  swould\sbe\sto\s
0480: 73 74 61 72 74 5c 73 70 61 79 69 6e 67 5c 73 61  start\spaying\sa
0490: 74 74 65 6e 74 69 6f 6e 5c 73 77 68 61 74 5c 73  ttention\swhat\s
04a0: 63 6c 69 65 6e 74 5f 73 79 6e 63 28 29 5c 73 61  client_sync()\sa
04b0: 63 74 75 61 6c 6c 79 5c 73 69 73 5c 73 72 65 74  ctually\sis\sret
04c0: 75 72 6e 69 6e 67 2e 2e 2e 0a 4a 20 72 65 73 6f  urning....J reso
04d0: 6c 75 74 69 6f 6e 20 4f 70 65 6e 0a 4b 20 62 63  lution Open.K bc
04e0: 30 64 30 66 35 36 34 32 65 61 66 39 62 32 31 38  0d0f5642eaf9b218
04f0: 34 65 62 65 64 37 39 65 61 32 31 38 33 30 31 37  4ebed79ea2183017
0500: 37 30 61 32 65 37 0a 55 20 6d 61 72 74 69 6e 2e  70a2e7.U martin.
0510: 77 65 62 65 72 0a 5a 20 32 61 33 64 38 32 33 66  weber.Z 2a3d823f
0520: 64 36 66 34 62 33 63 37 31 32 39 36 39 65 30 65  d6f4b3c712969e0e
0530: 33 62 38 32 36 63 66 31 0a                       3b826cf1.