Interestingly, there’s no reliable evidence of keelhauling ever being used in the Royal Navy, or the services that descended from it. It was used in the Koninklijke Marine (Royal Netherlands Navy) and by pirates and similar groups, but it never official status in any Navy of Britain or its Empire, and while there are plenty of claims it was used, nobody can actually seem to cite a case.
Plenty of other brutal punishments were permitted.
Fascinating, info, thanks..IIRC, ( and I read them a long, long time ago, there is one reference to it in one of the “Horatio Hornblower” novels by C.S. Forester. Forester was very accurately historically, so I assume that he had a precedent for the narrative.