The longest flight in terms of time was by the TWA Starliner N7307C on 1st October 1957 from London Airport to San Francisco.... 23 hrs 21 minutes non-stop.
A close second was a TWA L1649 ORY-SFO.
These airplanes were generally limited by the remaining engine oil supply.
I flew these aircraft trans-Pacific in excess of 17 hours, nonstop.
Oil?
Yup...105 gallons, please.
Fill 'er up, thanks...
The only airplane that used more oil in flight was the Boeing Stratocruiser..and yes, I flew these as well, but only for a very short time.
Darn....