]> mj.ucw.cz Git - subauth.git/commit
Server: Fixed handling of exceptions during packet constructions
authorMartin Mares <mj@ucw.cz>
Wed, 6 Sep 2017 20:49:27 +0000 (22:49 +0200)
committerMartin Mares <mj@ucw.cz>
Wed, 6 Sep 2017 20:49:27 +0000 (22:49 +0200)
commit2e5a931dd18959b88675bccd844b0226ec1f1099
tree3be2f7bf193b7f5f1bbe9ba99a8e457ad29885bf
parent0f6143135fb26b8fd26ce555eaccb19fa647cb1d
Server: Fixed handling of exceptions during packet constructions

We fell into two LibUCW traps at once :)

First, fastbuf operations generate proper exceptions only when
the fastbuf is tied to a resource pool of the current transaction
by fb_tie(). Otherwise, they call plain die().

Second, fb-buf did not support bclose(), so it could not have been
tied.

LibUCW 6.5.5 fixes the second problem, so let us tie the fb-buf
properly.
server/subauthd.c