The Pali Cannon, published in Sri Lanka in between 600 BC and a hundred BC, states that sexual relations, whether or not of homosexual or of heterosexual nature, is forbidden in the monastic code, and states that any acts of sentimental homosexual sex (for example masturbation and interfumeral sexual intercourse) isn't going to entail a punishment