Artifact
7363cd72292f497a113aef6e63cdc6636e3eb88f:
Wiki page
[Suspending Resource Handlers] by
murphy
2015-05-04 16:18:18.
0000: 44 20 32 30 31 35 2d 30 35 2d 30 34 54 31 36 3a D 2015-05-04T16:
0010: 31 38 3a 31 38 2e 32 35 35 0a 4c 20 53 75 73 70 18:18.255.L Susp
0020: 65 6e 64 69 6e 67 5c 73 52 65 73 6f 75 72 63 65 ending\sResource
0030: 5c 73 48 61 6e 64 6c 65 72 73 0a 50 20 65 39 38 \sHandlers.P e98
0040: 34 30 38 35 32 62 35 33 31 37 66 38 38 39 62 38 40852b5317f889b8
0050: 39 32 61 61 30 32 35 39 34 38 61 30 63 62 38 62 92aa025948a0cb8b
0060: 31 30 64 30 38 0a 55 20 6d 75 72 70 68 79 0a 57 10d08.U murphy.W
0070: 20 38 31 39 0a 3c 68 31 3e 53 75 73 70 65 6e 64 819.<h1>Suspend
0080: 69 6e 67 20 52 65 73 6f 75 72 63 65 20 48 61 6e ing Resource Han
0090: 64 6c 65 72 73 3c 2f 68 31 3e 0d 0a 0d 0a 3c 76 dlers</h1>....<v
00a0: 65 72 62 61 74 69 6d 3e 0d 0a 20 20 28 73 65 6e erbatim>.. (sen
00b0: 64 2f 73 75 73 70 65 6e 64 20 50 52 4f 43 29 20 d/suspend PROC)
00c0: 3d 3e 20 50 41 52 41 4d 45 54 45 52 53 0d 0a 3c => PARAMETERS..<
00d0: 2f 76 65 72 62 61 74 69 6d 3e 0d 0a 0d 0a 54 68 /verbatim>....Th
00e0: 69 73 20 70 72 6f 63 65 64 75 72 65 20 63 61 70 is procedure cap
00f0: 74 75 72 65 73 20 74 68 65 20 63 75 72 72 65 6e tures the curren
0100: 74 20 63 6f 6e 74 69 6e 75 61 74 69 6f 6e 2c 20 t continuation,
0110: 61 73 73 69 67 6e 73 20 61 20 3c 74 74 3e 55 52 assigns a <tt>UR
0120: 49 3c 2f 74 74 3e 20 74 6f 20 69 74 2c 20 61 70 I</tt> to it, ap
0130: 70 6c 69 65 73 0d 0a 3c 76 65 72 62 61 74 69 6d plies..<verbatim
0140: 3e 0d 0a 20 20 28 50 52 4f 43 20 55 52 49 29 20 >.. (PROC URI)
0150: 3d 3e 20 52 45 53 50 4f 4e 53 45 0d 0a 3c 2f 76 => RESPONSE..</v
0160: 65 72 62 61 74 69 6d 3e 0d 0a 74 6f 20 74 68 65 erbatim>..to the
0170: 20 3c 74 74 3e 55 52 49 3c 2f 74 74 3e 20 61 6e <tt>URI</tt> an
0180: 64 20 74 65 72 6d 69 6e 61 74 65 73 20 74 68 65 d terminates the
0190: 20 63 75 72 72 65 6e 74 20 72 65 73 6f 75 72 63 current resourc
01a0: 65 20 68 61 6e 64 6c 65 72 20 72 65 74 75 72 6e e handler return
01b0: 69 6e 67 20 74 68 65 20 3c 74 74 3e 52 45 53 50 ing the <tt>RESP
01c0: 4f 4e 53 45 3c 2f 74 74 3e 2e 0d 0a 0d 0a 57 68 ONSE</tt>.....Wh
01d0: 65 6e 20 61 20 72 65 71 75 65 73 74 20 69 73 20 en a request is
01e0: 73 65 6e 74 20 74 6f 20 74 68 65 20 67 65 6e 65 sent to the gene
01f0: 72 61 74 65 64 20 3c 74 74 3e 55 52 49 3c 2f 74 rated <tt>URI</t
0200: 74 3e 2c 20 74 68 65 20 63 61 70 74 75 72 65 64 t>, the captured
0210: 20 63 6f 6e 74 69 6e 75 61 74 69 6f 6e 20 69 73 continuation is
0220: 20 72 65 73 75 6d 65 64 20 61 6e 64 20 74 68 65 resumed and the
0230: 20 6f 72 69 67 69 6e 61 6c 20 63 61 6c 6c 20 74 original call t
0240: 6f 20 3c 74 74 3e 73 65 6e 64 2f 73 75 73 70 65 o <tt>send/suspe
0250: 6e 64 3c 2f 74 74 3e 20 72 65 74 75 72 6e 73 20 nd</tt> returns
0260: 74 68 65 20 68 61 73 68 20 74 61 62 6c 65 20 6f the hash table o
0270: 66 20 3c 74 74 3e 50 41 52 41 4d 45 54 45 52 53 f <tt>PARAMETERS
0280: 3c 2f 74 74 3e 20 66 6f 72 20 74 68 65 20 6e 65 </tt> for the ne
0290: 77 20 72 65 71 75 65 73 74 2e 0d 0a 0d 0a 54 68 w request.....Th
02a0: 65 20 64 65 66 61 75 6c 74 20 68 61 6e 64 6c 69 e default handli
02b0: 6e 67 20 6d 65 63 68 61 6e 69 73 6d 20 73 65 72 ng mechanism ser
02c0: 69 61 6c 69 7a 65 73 20 74 68 65 20 63 61 70 74 ializes the capt
02d0: 75 72 65 64 20 63 6f 6e 74 69 6e 75 61 74 69 6f ured continuatio
02e0: 6e 73 20 61 6e 64 20 77 72 61 70 73 20 74 68 65 ns and wraps the
02f0: 6d 20 77 69 74 68 20 61 75 74 68 65 6e 74 69 63 m with authentic
0300: 61 74 65 64 20 65 6e 63 72 79 70 74 69 6f 6e 20 ated encryption
0310: 62 65 66 6f 72 65 20 73 74 75 66 66 69 6e 67 20 before stuffing
0320: 74 68 65 6d 20 69 6e 74 6f 20 74 68 65 20 55 52 them into the UR
0330: 4c 20 69 74 73 65 6c 66 2e 20 54 68 75 73 20 74 L itself. Thus t
0340: 68 65 20 73 65 72 76 65 72 20 64 6f 65 73 6e 27 he server doesn'
0350: 74 20 68 61 76 65 20 74 6f 20 73 74 6f 72 65 20 t have to store
0360: 74 68 65 20 63 6f 6e 74 69 6e 75 61 74 69 6f 6e the continuation
0370: 73 20 70 65 72 73 69 73 74 65 6e 74 6c 79 20 61 s persistently a
0380: 6e 64 20 74 68 65 20 63 6c 69 65 6e 74 20 63 61 nd the client ca
0390: 6e 6e 6f 74 20 74 61 6d 70 65 72 20 77 69 74 68 nnot tamper with
03a0: 20 74 68 65 6d 2e 0d 0a 0a 5a 20 65 30 33 39 38 them....Z e0398
03b0: 38 39 32 32 32 39 65 38 35 34 30 39 64 34 32 30 892229e85409d420
03c0: 32 62 30 35 62 32 37 63 64 63 65 0a 2b05b27cdce.