File: vmod_blob.3

package info (click to toggle)
varnish 6.5.1-1%2Bdeb11u3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,720 kB
  • sloc: ansic: 95,295; javascript: 9,411; sh: 4,673; python: 2,157; makefile: 1,353; awk: 114; ruby: 34
file content (633 lines) | stat: -rw-r--r-- 18,260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
.\" Man page generated from reStructuredText.
.
.TH VMOD_BLOB 3 "" "" ""
.SH NAME
vmod_blob \- Utilities for the VCL blob type, encoding and decoding
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.\" 
.
.\" NB:  This file is machine generated, DO NOT EDIT!
.
.\" 
.
.\" Edit ./vmod_blob.vcc and run make instead
.
.\" 
.
.SH SYNOPSIS
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
import blob [as name] [from "path"]

BLOB decode(ENUM decoding, INT length, STRING encoded)

STRING encode(ENUM encoding, ENUM case, BLOB blob)

STRING transcode(ENUM decoding, ENUM encoding, ENUM case, INT length, STRING encoded)

BOOL same(BLOB, BLOB)

BOOL equal(BLOB, BLOB)

INT length(BLOB)

BLOB sub(BLOB, BYTES length, BYTES offset)

new xblob = blob.blob(ENUM decoding, STRING encoded)

    BLOB xblob.get()

    STRING xblob.encode(ENUM encoding, ENUM case)
.ft P
.fi
.UNINDENT
.UNINDENT
.SH DESCRIPTION
.sp
This VMOD provides utility functions and an object for the VCL data
type \fBBLOB\fP, which may contain arbitrary data of any length.
.sp
Examples:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
sub vcl_init {
    # Create blob objects from encodings such as base64 or hex.
    new myblob   = blob.blob(BASE64, "Zm9vYmFy");
    new yourblob = blob.blob(encoded="666F6F", decoding=HEX);
}

sub vcl_deliver {
    # The .get() method retrieves the BLOB from an object.
    set resp.http.MyBlob\-As\-Hex
        = blob.encode(blob=myblob.get(), encoding=HEX);

    # The .encode() method efficiently retrieves an encoding.
    set resp.http.YourBlob\-As\-Base64 = yourblob.encode(BASE64);

    # decode() and encode() functions convert blobs to text and
    # vice versa at runtime.
    set resp.http.Base64\-Encoded
        = blob.encode(BASE64,
                      blob=blob.decode(HEX,
                                       encoded=req.http.Hex\-Encoded));
}

sub vcl_recv {
    # transcode() converts from one encoding to another.
    # case=UPPER specifies upper\-case hex digits A\-F.
    set req.http.Hex\-Encoded
        = blob.transcode(decoding=BASE64, encoding=HEX,
                         case=UPPER, encoded="YmF6");

    # transcode() from URL to IDENTITY effects a URL decode.
    set req.url = blob.transcode(encoded=req.url, decoding=URL);

    # transcode() from IDENTITY to URL effects a URL encode.
    set req.http.url_urlcoded
        = blob.transcode(encoded=req.url, encoding=URL);
}
.ft P
.fi
.UNINDENT
.UNINDENT
.SS ENCODING SCHEMES
.sp
Binary\-to\-text encoding schemes are specified by ENUMs in the VMOD\(aqs
constructor, methods and functions. Decodings convert a (possibly
concatenated) string into a blob, while encodings convert a blob into
a string.
.sp
ENUM values for an encoding scheme can be one of:
.INDENT 0.0
.IP \(bu 2
\fBIDENTITY\fP
.IP \(bu 2
\fBBASE64\fP
.IP \(bu 2
\fBBASE64URL\fP
.IP \(bu 2
\fBBASE64URLNOPAD\fP
.IP \(bu 2
\fBHEX\fP
.IP \(bu 2
\fBURL\fP
.UNINDENT
.sp
Empty strings are decoded into a "null blob" (of length 0), and
conversely a null blob is encoded as the empty string.
.sp
For encodings with \fBHEX\fP or \fBURL\fP, you may also specify a \fIcase\fP
ENUM with one of the values \fBLOWER\fP, \fBUPPER\fP or \fBDEFAULT\fP to
produce a string with lower\- or uppercase hex digits (in \fB[a\-f]\fP or
\fB[A\-F]\fP). The default value for \fIcase\fP is \fBDEFAULT\fP, which for
\fBHEX\fP and \fBURL\fP means the same as \fBLOWER\fP\&.
.sp
The \fIcase\fP ENUM is not relevant for decodings; \fBHEX\fP or \fBURL\fP
strings to be decoded as BLOBs may have hex digits in either case, or
in mixed case.
.sp
The \fIcase\fP ENUM MUST be set to \fBDEFAULT\fP for the other encodings
(\fBBASE64*\fP and \fBIDENTITY\fP).  You cannot, for example, produce an
uppercase string by using the \fBIDENTITY\fP scheme with
\fBcase=UPPER\fP\&. To change the case of a string, use the \fBstd.toupper()\fP or
\fBstd.tolower()\fP functions from \fIvmod_std(3)\fP\&.
.SS IDENTITY
.sp
The simplest encoding converts between the BLOB and STRING data types,
leaving the contents byte\-identical.
.sp
Note that a BLOB may contain a null byte at any position before its
end; if such a BLOB is decoded with \fBIDENTITY\fP, the resulting STRING
will have a null byte at that position. Since VCL strings, like C
strings, are represented with a terminating null byte, the string will
be truncated, appearing to contain less data than the original
blob. For example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
# Decode from the hex encoding for "foo\e0bar".
# The header will be seen as "foo".
set resp.http.Trunced\-Foo1
    = blob.encode(IDENTITY, blob=blob.decode(HEX,
                                             encoded="666f6f00626172"));
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
\fBIDENTITY\fP is the default encoding and decoding. So the above can
also be written as:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
# Decode from the hex encoding for "foo\e0bar".
# The header will be seen as "foo".
set resp.http.Trunced\-Foo2
  = blob.encode(blob=blob.decode(HEX, encoded="666f6f00626172"));
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
The \fIcase\fP ENUM MUST be set to \fBDEFAULT\fP for \fBIDENTITY\fP encodings.
.SS BASE64*
.sp
The base64 encoding schemes use 4 characters to encode 3 bytes. There
are no newlines or maximal line lengths \-\- whitespace is not
permitted.
.sp
The \fBBASE64\fP encoding uses the alphanumeric characters, \fB+\fP and
\fB/\fP; and encoded strings are padded with the \fB=\fP character so that
their length is always a multiple of four.
.sp
The \fBBASE64URL\fP encoding also uses the alphanumeric characters, but
\fB\-\fP and \fB_\fP instead of \fB+\fP and \fB/\fP, so that an encoded string
can be used safely in a URL. This scheme also uses the padding
character \fB=\fP\&.
.sp
The \fBBASE64URLNOPAD\fP encoding uses the same alphabet as
\fBBASE6URL\fP, but leaves out the padding. Thus the length of an
encoding with this scheme is not necessarily a multiple of four.
.sp
The \fIcase\fP ENUM MUST be set to \fBDEFAULT\fP for for all of the
\fBBASE64*\fP encodings.
.SS HEX
.sp
The \fBHEX\fP encoding scheme converts hex strings into blobs and vice
versa. For encodings, you may use the \fIcase\fP ENUM to specify upper\-
or lowercase hex digits \fBA\fP through \fBf\fP (default \fBDEFAULT\fP,
which means the same as \fBLOWER\fP).  A prefix such as \fB0x\fP is not
used for an encoding and is illegal for a decoding.
.sp
If a hex string to be decoded has an odd number of digits, it is
decoded as if a \fB0\fP is prepended to it; that is, the first digit is
interpreted as representing the least significant nibble of the first
byte. For example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
# The concatenated string is "abcdef0", and is decoded as "0abcdef0".
set resp.http.First = "abc";
set resp.http.Second = "def0";
set resp.http.Hex\-Decoded
    = blob.encode(HEX, blob=blob.decode(HEX,
                       encoded=resp.http.First + resp.http.Second));
.ft P
.fi
.UNINDENT
.UNINDENT
.SS URL
.sp
The \fBURL\fP decoding replaces any \fB%<2\-hex\-digits>\fP substrings with
the binary value of the hexadecimal number after the \fB%\fP sign.
.sp
The \fBURL\fP encoding implements "percent encoding" as per RFC3986. The
\fIcase\fP ENUM determines the case of the hex digits, but does not
affect alphabetic characters that are not percent\-encoded.
.SS BLOB decode(ENUM decoding, INT length, STRING encoded)
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
BLOB decode(
   ENUM {IDENTITY, BASE64, BASE64URL, BASE64URLNOPAD, HEX, URL} decoding=IDENTITY,
   INT length=0,
   STRING encoded
)
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Returns the BLOB derived from the string \fIencoded\fP according to the
scheme specified by \fIdecoding\fP\&.
.sp
If \fIlength\fP > 0, only decode the first \fIlength\fP characters of the
encoded string. If \fIlength\fP <= 0 or greater than the length of the
string, then decode the entire string. The default value of \fIlength\fP
is 0.
.sp
\fIdecoding\fP defaults to IDENTITY.
.sp
Example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
blob.decode(BASE64, encoded="Zm9vYmFyYmF6");

# same with named parameters
blob.decode(encoded="Zm9vYmFyYmF6", decoding=BASE64);

# convert string to blob
blob.decode(encoded="foo");
.ft P
.fi
.UNINDENT
.UNINDENT
.SS STRING encode(ENUM encoding, ENUM case, BLOB blob)
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
STRING encode(
   ENUM {IDENTITY, BASE64, BASE64URL, BASE64URLNOPAD, HEX, URL} encoding=IDENTITY,
   ENUM {LOWER, UPPER, DEFAULT} case=DEFAULT,
   BLOB blob
)
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Returns a string representation of the BLOB \fIblob\fP as specified by
\fIencoding\fP\&. \fIcase\fP determines the case of hex digits for the \fBHEX\fP
and \fBURL\fP encodings, and is ignored for the other encodings.
.sp
\fIencoding\fP defaults to \fBIDENTITY\fP, and \fIcase\fP defaults to
\fBDEFAULT\fP\&.  \fBDEFAULT\fP is interpreted as \fBLOWER\fP for the \fBHEX\fP
and \fBURL\fP encodings, and is the required value for the other
encodings.
.sp
Example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
set resp.http.encode1
    = blob.encode(HEX,
                  blob=blob.decode(BASE64, encoded="Zm9vYmFyYmF6"));

# same with named parameters
set resp.http.encode2
    = blob.encode(blob=blob.decode(encoded="Zm9vYmFyYmF6",
                                           decoding=BASE64),
                      encoding=HEX);

# convert blob to string
set resp.http.encode3
    = blob.encode(blob=blob.decode(encoded="foo"));
.ft P
.fi
.UNINDENT
.UNINDENT
.SS STRING transcode(ENUM decoding, ENUM encoding, ENUM case, INT length, STRING encoded)
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
STRING transcode(
   ENUM {IDENTITY, BASE64, BASE64URL, BASE64URLNOPAD, HEX, URL} decoding=IDENTITY,
   ENUM {IDENTITY, BASE64, BASE64URL, BASE64URLNOPAD, HEX, URL} encoding=IDENTITY,
   ENUM {LOWER, UPPER, DEFAULT} case=DEFAULT,
   INT length=0,
   STRING encoded
)
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Translates from one encoding to another, by first decoding the string
\fIencoded\fP according to the scheme \fIdecoding\fP, and then returning
the encoding of the resulting blob according to the scheme
\fIencoding\fP\&. \fIcase\fP determines the case of hex digits for the
\fBHEX\fP and \fBURL\fP encodings, and is ignored for other encodings.
.sp
As with \fI\%blob.decode()\fP: If \fIlength\fP > 0, only decode the first
\fIlength\fP characters of the encoded string, otherwise decode the
entire string. The default value of \fIlength\fP is 0.
.sp
\fIdecoding\fP and \fIencoding\fP default to IDENTITY, and \fIcase\fP defaults to
\fBDEFAULT\fP\&. \fBDEFAULT\fP is interpreted as \fBLOWER\fP for the \fBHEX\fP
and \fBURL\fP encodings, and is the required value for the other
encodings.
.sp
Example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
set resp.http.Hex2Base64\-1
     = blob.transcode(HEX, BASE64, encoded="666f6f");

 # same with named parameters
 set resp.http.Hex2Base64\-2
    = blob.transcode(encoded="666f6f",
                          encoding=BASE64, decoding=HEX);

 # URL decode \-\- recall that IDENTITY is the default encoding.
 set resp.http.urldecoded
    = blob.transcode(encoded="foo%20bar", decoding=URL);

 # URL encode
 set resp.http.urlencoded
     = blob.transcode(encoded="foo bar", encoding=URL);
.ft P
.fi
.UNINDENT
.UNINDENT
.SS BOOL same(BLOB, BLOB)
.sp
Returns \fBtrue\fP if and only if the two BLOB arguments are the same
object, i.e. they specify exactly the same region of memory, or both
are empty.
.sp
If the BLOBs are both empty (length is 0 and/or the internal pointer
is \fBNULL\fP), then \fI\%blob.same()\fP returns \fBtrue\fP\&. If any
non\-empty BLOB is compared to an empty BLOB, then \fI\%blob.same()\fP
returns \fBfalse\fP\&.
.SS BOOL equal(BLOB, BLOB)
.sp
Returns true if and only if the two BLOB arguments have equal contents
(possibly in different memory regions).
.sp
As with \fI\%blob.same()\fP: If the BLOBs are both empty, then \fI\%blob.equal()\fP
returns \fBtrue\fP\&. If any non\-empty BLOB is compared to an empty BLOB,
then \fI\%blob.equal()\fP returns \fBfalse\fP\&.
.SS INT length(BLOB)
.sp
Returns the length of the BLOB.
.SS BLOB sub(BLOB, BYTES length, BYTES offset=0)
.sp
Returns a new BLOB formed from \fIlength\fP bytes of the BLOB argument
starting at \fIoffset\fP bytes from the start of its memory region. The
default value of \fIoffset\fP is \fB0B\fP\&.
.sp
\fI\%blob.sub()\fP fails and returns NULL if the BLOB argument is empty, or if
\fBoffset + length\fP requires more bytes than are available in the
BLOB.
.SS new xblob = blob.blob(ENUM decoding, STRING encoded)
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
new xblob = blob.blob(
   ENUM {IDENTITY, BASE64, BASE64URL, BASE64URLNOPAD, HEX, URL} decoding=IDENTITY,
   STRING encoded
)
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Creates an object that contains the BLOB derived from the string
\fIencoded\fP according to the scheme \fIdecoding\fP\&.
.sp
Example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
new theblob1 = blob.blob(BASE64, encoded="YmxvYg==");

# same with named arguments
new theblob2 = blob.blob(encoded="YmxvYg==", decoding=BASE64);

# string as a blob
new stringblob = blob.blob(encoded="bazz");
.ft P
.fi
.UNINDENT
.UNINDENT
.SS BLOB xblob.get()
.sp
Returns the BLOB created by the constructor.
.sp
Example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
set resp.http.The\-Blob1 =
    blob.encode(blob=theblob1.get());

set resp.http.The\-Blob2 =
    blob.encode(blob=theblob2.get());

set resp.http.The\-Stringblob =
    blob.encode(blob=stringblob.get());
.ft P
.fi
.UNINDENT
.UNINDENT
.SS STRING xblob.encode(ENUM encoding, ENUM case)
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
STRING xblob.encode(
      ENUM {IDENTITY, BASE64, BASE64URL, BASE64URLNOPAD, HEX, URL} encoding=IDENTITY,
      ENUM {LOWER, UPPER, DEFAULT} case=DEFAULT
)
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
Returns an encoding of BLOB created by the constructor, according to
the scheme \fIencoding\fP\&. \fIcase\fP determines the case of hex digits
for the \fBHEX\fP and \fBURL\fP encodings, and MUST be set to \fBDEFAULT\fP
for the other encodings.
.sp
Example:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
# blob as text
set resp.http.The\-Blob = theblob1.encode();

# blob as base64
set resp.http.The\-Blob\-b64 = theblob1.encode(BASE64);
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
For any \fI\%blob.blob()\fP object, \fIencoding\fP and \fIcase\fP, encodings via
the \fI\%xblob.encode()\fP method and the \fI\%blob.encode()\fP
function are equal:
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
# Always true:
blob.encode(ENC, CASE, blob.get()) == blob.encode(ENC, CASE)
.ft P
.fi
.UNINDENT
.UNINDENT
.sp
But the \fI\%xblob.encode()\fP object method is more efficient \-\-
the encoding is computed once and cached (with allocation in heap
memory), and the cached encoding is retrieved on every subsequent
call. The \fI\%blob.encode()\fP function computes the encoding on every
call, allocating space for the string in Varnish workspaces.
.sp
So if the data in a BLOB are fixed at VCL initialization time, so that
its encodings will always be the same, it is better to create a
\fI\%blob.blob()\fP object. The VMOD\(aqs functions should be used for data that are
not known until runtime.
.SH ERRORS
.sp
The encoders, decoders and \fI\%blob.sub()\fP may fail if there is
insufficient space to create the new blob or string. Decoders may also
fail if the encoded string is an illegal format for the decoding
scheme. Encoders will fail for the \fBIDENTITY\fP and \fBBASE64*\fP
encoding schemes if the \fIcase\fP ENUM is not set to \fBDEFAULT\fP\&.
.sp
If any of the VMOD\(aqs methods, functions or constructor fail, then VCL
failure is invoked, just as if \fBreturn(fail)\fP had been called in the
VCL source. This means that:
.INDENT 0.0
.IP \(bu 2
If the \fI\%blob.blob()\fP object constructor fails, or if any methods or
functions fail during \fBvcl_init{}\fP, then the VCL program will fail
to load, and the VCC compiler will emit an error message.
.IP \(bu 2
If a method or function fails in any other VCL subroutine besides
\fBvcl_synth{}\fP, then control is directed to \fBvcl_synth{}\fP\&. The
response status is set to 503 with the reason string \fB"VCL
failed"\fP, and an error message will be written to the \fIvsl(7)\fP
using the tag \fBVCL_Error\fP\&.
.IP \(bu 2
If the failure occurs during \fBvcl_synth{}\fP, then \fBvcl_synth{}\fP
is aborted. The response line \fB"503 VCL failed"\fP is returned, and
the \fBVCL_Error\fP message is written to the log.
.UNINDENT
.SH LIMITATIONS
.sp
The VMOD allocates memory in various ways for new blobs and
strings. The \fI\%blob.blob()\fP object and its methods allocate memory
from the heap, and hence they are only limited by available virtual
memory.
.sp
The \fI\%blob.encode()\fP, \fI\%blob.decode()\fP and
\fI\%blob.transcode()\fP functions allocate Varnish workspace, as does
\fI\%blob.sub()\fP for the newly created BLOB.  If these functions are
failing, as indicated by "out of space" messages in the Varnish log
(with the \fBVCL_Error\fP tag), then you will need to increase the
varnishd parameters \fBworkspace_client\fP and/or \fBworkspace_backend\fP\&.
.sp
The \fI\%blob.transcode()\fP function also allocates space on the stack
for a temporary BLOB. If this function causes stack overflow, you may
need to increase the varnishd parameter \fBthread_pool_stack\fP\&.
.SH SEE ALSO
.INDENT 0.0
.IP \(bu 2
\fIvarnishd(1)\fP
.IP \(bu 2
\fIvcl(7)\fP
.IP \(bu 2
\fIvsl(7)\fP
.IP \(bu 2
\fIvmod_std(3)\fP
.UNINDENT
.SH COPYRIGHT
.INDENT 0.0
.INDENT 3.5
.sp
.nf
.ft C
This document is licensed under the same conditions as Varnish itself.
See LICENSE for details.

Authors: Nils Goroll <nils.goroll@uplex.de>
         Geoffrey Simmons <geoffrey.simmons@uplex.de>
.ft P
.fi
.UNINDENT
.UNINDENT
.\" Generated by docutils manpage writer.
.