What is the meaning of Close-hauled?

with the sails trimmed as close to the wind as possible with all sails full and not shivering

with the sails close-hauled

Source: wiktionary.org