I have been in this situation. Find other things to focus on - sightseeing, talking to other people etc. Just get your mind off it by throwing all your energies into other pursuits. It worked very well for me.
Didn't work for me. I ended up cutting my holiday short and flying home.
Travelling lets you actually EXPERIENCE the freedom you have in fact always had but just couldn't see it. Its a great aphrodisiac in that sense.
I'm lucky enough to say it happened more than once but tten I did travel a long time... well, haven't stopped yet ............
.............I would like to mention one very special person. In Bangkok, she helped me with something and we ended up being together for about 2 weeks. We both knew she was moving on, back to her home and work. Maybe that enables more to happen. That commitment thing isn't there.
But this was much richer than any (extended) 1 night stand. What she was helping me with was hard work and pretty stressful. I can't tell you how much easier it was with her there.
And 18 years on, having sadly lost contact with her.... she can still warm my heart just by thinking about her and how it felt to be near her at the time. Maybe there's a new thread? Does a memory keep a contact alive? It would be nice to think so. She was quite simply a beautiful human being....
Damn my fear of commitment!