Megatest

Hex Artifact Content
Login

Artifact ec783673b90a88dea34d1cd24b71515d48e3e2ae:


0000: 2f 2f 20 20 43 6f 70 79 72 69 67 68 74 20 32 30  //  Copyright 20
0010: 30 36 2d 32 30 31 37 2c 20 4d 61 74 74 68 65 77  06-2017, Matthew
0020: 20 57 65 6c 6c 61 6e 64 2e 0a 2f 2f 20 0a 2f 2f   Welland..// .//
0030: 20 54 68 69 73 20 66 69 6c 65 20 69 73 20 70 61   This file is pa
0040: 72 74 20 6f 66 20 4d 65 67 61 74 65 73 74 2e 0a  rt of Megatest..
0050: 2f 2f 20 0a 2f 2f 20 20 20 20 20 4d 65 67 61 74  // .//     Megat
0060: 65 73 74 20 69 73 20 66 72 65 65 20 73 6f 66 74  est is free soft
0070: 77 61 72 65 3a 20 79 6f 75 20 63 61 6e 20 72 65  ware: you can re
0080: 64 69 73 74 72 69 62 75 74 65 20 69 74 20 61 6e  distribute it an
0090: 64 2f 6f 72 20 6d 6f 64 69 66 79 0a 2f 2f 20 20  d/or modify.//  
00a0: 20 20 20 69 74 20 75 6e 64 65 72 20 74 68 65 20     it under the 
00b0: 74 65 72 6d 73 20 6f 66 20 74 68 65 20 47 4e 55  terms of the GNU
00c0: 20 47 65 6e 65 72 61 6c 20 50 75 62 6c 69 63 20   General Public 
00d0: 4c 69 63 65 6e 73 65 20 61 73 20 70 75 62 6c 69  License as publi
00e0: 73 68 65 64 20 62 79 0a 2f 2f 20 20 20 20 20 74  shed by.//     t
00f0: 68 65 20 46 72 65 65 20 53 6f 66 74 77 61 72 65  he Free Software
0100: 20 46 6f 75 6e 64 61 74 69 6f 6e 2c 20 65 69 74   Foundation, eit
0110: 68 65 72 20 76 65 72 73 69 6f 6e 20 33 20 6f 66  her version 3 of
0120: 20 74 68 65 20 4c 69 63 65 6e 73 65 2c 20 6f 72   the License, or
0130: 0a 2f 2f 20 20 20 20 20 28 61 74 20 79 6f 75 72  .//     (at your
0140: 20 6f 70 74 69 6f 6e 29 20 61 6e 79 20 6c 61 74   option) any lat
0150: 65 72 20 76 65 72 73 69 6f 6e 2e 0a 2f 2f 20 0a  er version..// .
0160: 2f 2f 20 20 20 20 20 4d 65 67 61 74 65 73 74 20  //     Megatest 
0170: 69 73 20 64 69 73 74 72 69 62 75 74 65 64 20 69  is distributed i
0180: 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 74 20  n the hope that 
0190: 69 74 20 77 69 6c 6c 20 62 65 20 75 73 65 66 75  it will be usefu
01a0: 6c 2c 0a 2f 2f 20 20 20 20 20 62 75 74 20 57 49  l,.//     but WI
01b0: 54 48 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e  THOUT ANY WARRAN
01c0: 54 59 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e  TY; without even
01d0: 20 74 68 65 20 69 6d 70 6c 69 65 64 20 77 61 72   the implied war
01e0: 72 61 6e 74 79 20 6f 66 0a 2f 2f 20 20 20 20 20  ranty of.//     
01f0: 4d 45 52 43 48 41 4e 54 41 42 49 4c 49 54 59 20  MERCHANTABILITY 
0200: 6f 72 20 46 49 54 4e 45 53 53 20 46 4f 52 20 41  or FITNESS FOR A
0210: 20 50 41 52 54 49 43 55 4c 41 52 20 50 55 52 50   PARTICULAR PURP
0220: 4f 53 45 2e 20 20 53 65 65 20 74 68 65 0a 2f 2f  OSE.  See the.//
0230: 20 20 20 20 20 47 4e 55 20 47 65 6e 65 72 61 6c       GNU General
0240: 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 20   Public License 
0250: 66 6f 72 20 6d 6f 72 65 20 64 65 74 61 69 6c 73  for more details
0260: 2e 0a 2f 2f 20 0a 2f 2f 20 20 20 20 20 59 6f 75  ..// .//     You
0270: 20 73 68 6f 75 6c 64 20 68 61 76 65 20 72 65 63   should have rec
0280: 65 69 76 65 64 20 61 20 63 6f 70 79 20 6f 66 20  eived a copy of 
0290: 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61 6c 20  the GNU General 
02a0: 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65 0a 2f  Public License./
02b0: 2f 20 20 20 20 20 61 6c 6f 6e 67 20 77 69 74 68  /     along with
02c0: 20 4d 65 67 61 74 65 73 74 2e 20 20 49 66 20 6e   Megatest.  If n
02d0: 6f 74 2c 20 73 65 65 20 3c 68 74 74 70 3a 2f 2f  ot, see <http://
02e0: 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 6c 69 63 65  www.gnu.org/lice
02f0: 6e 73 65 73 2f 3e 2e 0a 64 69 67 72 61 70 68 20  nses/>..digraph 
0300: 47 20 7b 0a 0a 20 20 20 20 73 75 62 67 72 61 70  G {..    subgrap
0310: 68 20 63 6c 75 73 74 65 72 5f 31 20 7b 0a 20 20  h cluster_1 {.  
0320: 20 20 20 20 20 20 6e 6f 64 65 20 5b 73 74 79 6c        node [styl
0330: 65 3d 66 69 6c 6c 65 64 2c 73 68 61 70 65 3d 62  e=filled,shape=b
0340: 6f 78 5d 3b 0a 0a 09 72 6d 74 3a 73 65 6e 64 2d  ox];...rmt:send-
0350: 72 65 63 65 69 76 65 20 2d 3e 20 22 69 6e 69 74  receive -> "init
0360: 2d 2a 72 65 6d 6f 74 65 2a 20 69 66 20 6e 65 65  -*remote* if nee
0370: 64 65 64 22 20 2d 3e 20 72 6d 74 3a 67 65 6e 65  ded" -> rmt:gene
0380: 72 61 6c 2d 6f 70 65 6e 2d 63 6f 6e 6e 65 63 74  ral-open-connect
0390: 69 6f 6e 20 2d 3e 0a 09 20 20 72 6d 74 3a 73 65  ion ->..  rmt:se
03a0: 6e 64 2d 72 65 63 65 69 76 65 2d 72 65 61 6c 3b  nd-receive-real;
03b0: 0a 09 0a 0a 2f 2f 09 63 68 65 63 6b 5f 61 76 61  ....//.check_ava
03c0: 69 6c 61 62 6c 65 5f 71 75 65 75 65 20 20 20 20  ilable_queue    
03d0: 20 20 20 2d 3e 20 72 65 6d 6f 76 65 5f 65 6e 74     -> remove_ent
03e0: 72 69 65 73 5f 6f 76 65 72 5f 31 30 73 5f 6f 6c  ries_over_10s_ol
03f0: 64 3b 0a 2f 2f 09 72 65 6d 6f 76 65 5f 65 6e 74  d;.//.remove_ent
0400: 72 69 65 73 5f 6f 76 65 72 5f 31 30 73 5f 6f 6c  ries_over_10s_ol
0410: 64 20 2d 3e 20 73 65 74 5f 61 76 61 69 6c 61 62  d -> set_availab
0420: 6c 65 20 5b 6c 61 62 65 6c 3d 22 6e 75 6d 5f 61  le [label="num_a
0430: 76 61 69 6c 20 3c 20 33 22 5d 3b 0a 2f 2f 09 72  vail < 3"];.//.r
0440: 65 6d 6f 76 65 5f 65 6e 74 72 69 65 73 5f 6f 76  emove_entries_ov
0450: 65 72 5f 31 30 73 5f 6f 6c 64 20 2d 3e 20 65 78  er_10s_old -> ex
0460: 69 74 20 5b 6c 61 62 65 6c 3d 22 6e 75 6d 5f 61  it [label="num_a
0470: 76 61 69 6c 20 3e 20 32 22 5d 3b 0a 2f 2f 0a 2f  vail > 2"];.//./
0480: 2f 09 73 65 74 5f 61 76 61 69 6c 61 62 6c 65 20  /.set_available 
0490: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2d 3e                ->
04a0: 20 64 65 6c 61 79 5f 32 73 3b 0a 2f 2f 09 64 65   delay_2s;.//.de
04b0: 6c 61 79 5f 32 73 20 20 20 20 20 20 20 20 20 20  lay_2s          
04c0: 2d 3e 20 63 68 65 63 6b 5f 70 6c 61 63 65 5f 69  -> check_place_i
04d0: 6e 5f 71 75 65 75 65 3b 0a 2f 2f 0a 2f 2f 09 63  n_queue;.//.//.c
04e0: 68 65 63 6b 5f 70 6c 61 63 65 5f 69 6e 5f 71 75  heck_place_in_qu
04f0: 65 75 65 20 20 20 20 20 20 20 20 2d 3e 20 22 68  eue        -> "h
0500: 74 74 70 3a 74 72 61 6e 73 70 6f 72 74 2d 6c 61  ttp:transport-la
0510: 75 6e 63 68 22 20 5b 6c 61 62 65 6c 3d 22 61 74  unch" [label="at
0520: 20 68 65 61 64 22 5d 3b 0a 2f 2f 09 63 68 65 63   head"];.//.chec
0530: 6b 5f 70 6c 61 63 65 5f 69 6e 5f 71 75 65 75 65  k_place_in_queue
0540: 20 20 20 20 20 20 20 20 2d 3e 20 65 78 69 74 20          -> exit 
0550: 5b 6c 61 62 65 6c 3d 22 6e 6f 74 20 61 74 20 68  [label="not at h
0560: 65 61 64 22 5d 3b 0a 2f 2f 0a 2f 2f 09 22 63 6c  ead"];.//.//."cl
0570: 69 65 6e 74 3a 6c 6f 67 69 6e 22 20 20 20 20 20  ient:login"     
0580: 20 20 20 20 20 20 20 20 20 2d 3e 20 22 73 65 72           -> "ser
0590: 76 65 72 3a 73 68 75 74 64 6f 77 6e 22 20 5b 6c  ver:shutdown" [l
05a0: 61 62 65 6c 3d 22 6c 6f 67 69 6e 20 66 61 69 6c  abel="login fail
05b0: 65 64 22 5d 3b 0a 2f 2f 09 22 73 65 72 76 65 72  ed"];.//."server
05c0: 3a 73 68 75 74 64 6f 77 6e 22 20 20 20 20 20 20  :shutdown"      
05d0: 20 20 20 20 20 2d 3e 20 65 78 69 74 3b 09 0a 2f       -> exit;../
05e0: 2f 0a 2f 2f 09 73 75 62 67 72 61 70 68 20 63 6c  /.//.subgraph cl
05f0: 75 73 74 65 72 5f 32 20 7b 0a 2f 2f 09 09 22 68  uster_2 {.//.."h
0600: 74 74 70 3a 74 72 61 6e 73 70 6f 72 74 2d 6c 61  ttp:transport-la
0610: 75 6e 63 68 22 20 20 20 20 20 20 20 2d 3e 20 22  unch"       -> "
0620: 68 74 74 70 3a 74 72 61 6e 73 70 6f 72 74 2d 72  http:transport-r
0630: 75 6e 22 3b 0a 2f 2f 09 09 22 68 74 74 70 3a 74  un";.//.."http:t
0640: 72 61 6e 73 70 6f 72 74 2d 6c 61 75 6e 63 68 22  ransport-launch"
0650: 20 20 20 20 20 20 20 2d 3e 20 22 68 74 74 70 3a         -> "http:
0660: 74 72 61 6e 73 70 6f 72 74 2d 6b 65 65 70 2d 72  transport-keep-r
0670: 75 6e 6e 69 6e 67 22 3b 0a 2f 2f 0a 2f 2f 09 09  unning";.//.//..
0680: 22 68 74 74 70 3a 74 72 61 6e 73 70 6f 72 74 2d  "http:transport-
0690: 6b 65 65 70 2d 72 75 6e 6e 69 6e 67 22 20 2d 3e  keep-running" ->
06a0: 20 22 74 65 73 74 73 20 72 75 6e 6e 69 6e 67 3f   "tests running?
06b0: 22 3b 0a 2f 2f 09 09 22 74 65 73 74 73 20 72 75  ";.//.."tests ru
06c0: 6e 6e 69 6e 67 3f 22 20 20 20 20 20 20 20 20 20  nning?"         
06d0: 20 20 20 20 20 2d 3e 20 22 63 6c 69 65 6e 74 3a       -> "client:
06e0: 6c 6f 67 69 6e 22 20 5b 6c 61 62 65 6c 3d 79 65  login" [label=ye
06f0: 73 5d 3b 0a 2f 2f 09 09 22 74 65 73 74 73 20 72  s];.//.."tests r
0700: 75 6e 6e 69 6e 67 3f 22 20 20 20 20 20 20 20 20  unning?"        
0710: 20 20 20 20 20 20 2d 3e 20 22 73 65 72 76 65 72        -> "server
0720: 3a 73 68 75 74 64 6f 77 6e 22 20 5b 6c 61 62 65  :shutdown" [labe
0730: 6c 3d 6e 6f 5d 3b 0a 2f 2f 09 09 22 63 6c 69 65  l=no];.//.."clie
0740: 6e 74 3a 6c 6f 67 69 6e 22 20 20 20 20 20 20 20  nt:login"       
0750: 20 20 20 20 20 20 20 20 20 2d 3e 20 64 65 6c 61           -> dela
0760: 79 5f 35 73 20 5b 6c 61 62 65 6c 3d 22 6c 6f 67  y_5s [label="log
0770: 69 6e 20 6f 6b 22 5d 3b 0a 2f 2f 09 09 64 65 6c  in ok"];.//..del
0780: 61 79 5f 35 73 20 20 20 20 20 20 20 20 20 20 20  ay_5s           
0790: 20 20 20 20 20 20 20 20 20 20 20 2d 3e 20 22 68             -> "h
07a0: 74 74 70 3a 74 72 61 6e 73 70 6f 72 74 2d 6b 65  ttp:transport-ke
07b0: 65 70 2d 72 75 6e 6e 69 6e 67 22 3b 0a 2f 2f 09  ep-running";.//.
07c0: 7d 0a 2f 2f 0a 2f 2f 09 2f 2f 20 73 74 61 72 74  }.//.//.// start
07d0: 5f 73 65 72 76 65 72 20 2d 3e 20 22 73 65 72 76  _server -> "serv
07e0: 65 72 5f 72 75 6e 6e 69 6e 67 3f 22 3b 0a 2f 2f  er_running?";.//
07f0: 09 2f 2f 20 22 73 65 72 76 65 72 5f 72 75 6e 6e  .// "server_runn
0800: 69 6e 67 3f 22 20 2d 3e 20 73 65 74 5f 61 76 61  ing?" -> set_ava
0810: 69 6c 61 62 6c 65 20 5b 6c 61 62 65 6c 3d 22 6e  ilable [label="n
0820: 6f 22 5d 3b 0a 2f 2f 09 2f 2f 20 22 73 65 72 76  o"];.//.// "serv
0830: 65 72 5f 72 75 6e 6e 69 6e 67 3f 22 20 2d 3e 20  er_running?" -> 
0840: 64 65 6c 61 79 5f 32 73 20 5b 6c 61 62 65 6c 3d  delay_2s [label=
0850: 22 79 65 73 22 5d 3b 0a 2f 2f 09 2f 2f 20 64 65  "yes"];.//.// de
0860: 6c 61 79 5f 32 73 20 2d 3e 20 22 73 74 69 6c 6c  lay_2s -> "still
0870: 5f 72 75 6e 6e 69 6e 67 3f 22 3b 0a 2f 2f 09 2f  _running?";.//./
0880: 2f 20 22 73 74 69 6c 6c 5f 72 75 6e 6e 69 6e 67  / "still_running
0890: 3f 22 20 2d 3e 20 70 69 6e 67 5f 73 65 72 76 65  ?" -> ping_serve
08a0: 72 20 5b 6c 61 62 65 6c 3d 79 65 73 5d 3b 0a 2f  r [label=yes];./
08b0: 2f 09 2f 2f 20 22 73 74 69 6c 6c 5f 72 75 6e 6e  /.// "still_runn
08c0: 69 6e 67 3f 22 20 2d 3e 20 73 65 74 5f 61 76 61  ing?" -> set_ava
08d0: 69 6c 61 62 6c 65 20 5b 6c 61 62 65 6c 3d 6e 6f  ilable [label=no
08e0: 5d 3b 0a 2f 2f 09 2f 2f 20 70 69 6e 67 5f 73 65  ];.//.// ping_se
08f0: 72 76 65 72 20 2d 3e 20 65 78 69 74 20 5b 6c 61  rver -> exit [la
0900: 62 65 6c 3d 61 6c 69 76 65 5d 3b 0a 2f 2f 09 2f  bel=alive];.//./
0910: 2f 20 70 69 6e 67 5f 73 65 72 76 65 72 20 2d 3e  / ping_server ->
0920: 20 72 65 6d 6f 76 65 5f 73 65 72 76 65 72 5f 72   remove_server_r
0930: 65 63 6f 72 64 20 5b 6c 61 62 65 6c 3d 64 65 61  ecord [label=dea
0940: 64 5d 3b 0a 2f 2f 09 2f 2f 20 72 65 6d 6f 76 65  d];.//.// remove
0950: 5f 73 65 72 76 65 72 5f 72 65 63 6f 72 64 20 2d  _server_record -
0960: 3e 20 73 65 74 5f 61 76 61 69 6c 61 62 6c 65 3b  > set_available;
0970: 0a 2f 2f 09 2f 2f 20 73 65 74 5f 61 76 61 69 6c  .//.// set_avail
0980: 61 62 6c 65 20 2d 3e 20 61 76 61 69 6c 5f 64 65  able -> avail_de
0990: 6c 61 79 20 5b 6c 61 62 65 6c 3d 22 64 65 6c 61  lay [label="dela
09a0: 79 20 33 73 22 5d 3b 0a 2f 2f 09 2f 2f 20 61 76  y 3s"];.//.// av
09b0: 61 69 6c 5f 64 65 6c 61 79 20 2d 3e 20 22 66 69  ail_delay -> "fi
09c0: 72 73 74 5f 69 6e 5f 71 75 65 75 65 3f 22 3b 0a  rst_in_queue?";.
09d0: 2f 2f 09 2f 2f 20 0a 2f 2f 09 2f 2f 20 22 66 69  //.// .//.// "fi
09e0: 72 73 74 5f 69 6e 5f 71 75 65 75 65 3f 22 20 2d  rst_in_queue?" -
09f0: 3e 20 73 65 74 5f 72 75 6e 6e 69 6e 67 20 5b 6c  > set_running [l
0a00: 61 62 65 6c 3d 79 65 73 5d 3b 0a 2f 2f 09 2f 2f  abel=yes];.//.//
0a10: 20 73 65 74 5f 72 75 6e 6e 69 6e 67 20 2d 3e 20   set_running -> 
0a20: 67 65 74 5f 6e 65 78 74 5f 70 6f 72 74 20 2d 3e  get_next_port ->
0a30: 20 68 61 6e 64 6c 65 5f 72 65 71 75 65 73 74 73   handle_requests
0a40: 3b 0a 2f 2f 09 2f 2f 20 22 66 69 72 73 74 5f 69  ;.//.// "first_i
0a50: 6e 5f 71 75 65 75 65 3f 22 20 2d 3e 20 22 64 65  n_queue?" -> "de
0a60: 61 64 5f 65 6e 74 72 79 5f 69 6e 5f 71 75 65 75  ad_entry_in_queu
0a70: 65 3f 22 20 5b 6c 61 62 65 6c 3d 6e 6f 5d 3b 0a  e?" [label=no];.
0a80: 2f 2f 09 2f 2f 20 22 64 65 61 64 5f 65 6e 74 72  //.// "dead_entr
0a90: 79 5f 69 6e 5f 71 75 65 75 65 3f 22 20 2d 3e 20  y_in_queue?" -> 
0aa0: 22 73 65 72 76 65 72 5f 72 75 6e 6e 69 6e 67 3f  "server_running?
0ab0: 22 20 5b 6c 61 62 65 6c 3d 6e 6f 5d 3b 0a 2f 2f  " [label=no];.//
0ac0: 09 2f 2f 20 22 64 65 61 64 5f 65 6e 74 72 79 5f  .// "dead_entry_
0ad0: 69 6e 5f 71 75 65 75 65 3f 22 20 2d 3e 20 22 72  in_queue?" -> "r
0ae0: 65 6d 6f 76 65 5f 64 65 61 64 5f 65 6e 74 72 69  emove_dead_entri
0af0: 65 73 22 20 5b 6c 61 62 65 6c 3d 79 65 73 5d 3b  es" [label=yes];
0b00: 0a 2f 2f 09 2f 2f 20 72 65 6d 6f 76 65 5f 64 65  .//.// remove_de
0b10: 61 64 5f 65 6e 74 72 69 65 73 20 2d 3e 20 22 73  ad_entries -> "s
0b20: 65 72 76 65 72 5f 72 75 6e 6e 69 6e 67 3f 22 3b  erver_running?";
0b30: 0a 2f 2f 09 2f 2f 20 0a 2f 2f 09 2f 2f 20 68 61  .//.// .//.// ha
0b40: 6e 64 6c 65 5f 72 65 71 75 65 73 74 73 20 2d 3e  ndle_requests ->
0b50: 20 73 74 61 72 74 5f 73 68 75 74 64 6f 77 6e 20   start_shutdown 
0b60: 5b 6c 61 62 65 6c 3d 22 6e 6f 20 74 72 61 66 66  [label="no traff
0b70: 69 63 5c 6e 6e 6f 20 72 75 6e 6e 69 6e 67 20 74  ic\nno running t
0b80: 65 73 74 73 22 5d 3b 0a 2f 2f 09 2f 2f 20 68 61  ests"];.//.// ha
0b90: 6e 64 6c 65 5f 72 65 71 75 65 73 74 73 20 2d 3e  ndle_requests ->
0ba0: 20 73 68 75 74 64 6f 77 6e 5f 72 65 71 75 65 73   shutdown_reques
0bb0: 74 3b 0a 2f 2f 09 2f 2f 20 73 74 61 72 74 5f 73  t;.//.// start_s
0bc0: 68 75 74 64 6f 77 6e 20 2d 3e 20 73 68 75 74 64  hutdown -> shutd
0bd0: 6f 77 6e 5f 64 65 6c 61 79 3b 0a 2f 2f 09 2f 2f  own_delay;.//.//
0be0: 20 73 68 75 74 64 6f 77 6e 5f 72 65 71 75 65 73   shutdown_reques
0bf0: 74 20 2d 3e 20 73 68 75 74 64 6f 77 6e 5f 64 65  t -> shutdown_de
0c00: 6c 61 79 3b 0a 2f 2f 09 2f 2f 20 73 68 75 74 64  lay;.//.// shutd
0c10: 6f 77 6e 5f 64 65 6c 61 79 20 2d 3e 20 65 78 69  own_delay -> exi
0c20: 74 3b 0a 2f 2f 09 0a 2f 2f 20 20 20 20 20 20 20  t;.//..//       
0c30: 20 6c 61 62 65 6c 20 3d 20 22 73 65 72 76 65 72   label = "server
0c40: 3a 6c 61 75 6e 63 68 22 3b 0a 2f 2f 20 20 20 20  :launch";.//    
0c50: 20 20 20 20 63 6f 6c 6f 72 3d 62 72 6f 77 6e 3b      color=brown;
0c60: 0a 20 20 20 20 7d 0a 0a 2f 2f 20 20 20 20 20 63  .    }..//     c
0c70: 6c 69 65 6e 74 5f 73 74 61 72 74 5f 73 65 72 76  lient_start_serv
0c80: 65 72 20 2d 3e 20 73 74 61 72 74 5f 73 65 72 76  er -> start_serv
0c90: 65 72 3b 0a 2f 2f 20 20 20 20 20 68 61 6e 64 6c  er;.//     handl
0ca0: 65 5f 72 65 71 75 65 73 74 73 20 2d 3e 20 72 65  e_requests -> re
0cb0: 61 64 5f 77 72 69 74 65 3b 0a 2f 2f 20 20 20 20  ad_write;.//    
0cc0: 20 72 65 61 64 5f 77 72 69 74 65 20 2d 3e 20 68   read_write -> h
0cd0: 61 6e 64 6c 65 5f 72 65 71 75 65 73 74 73 3b 0a  andle_requests;.
0ce0: 7d 0a                                            }.