Bill Hamid, greeting New York City FC counterpart Sean Johnson on April 8 at RFK Stadium, is in his eighth season with United. (Jonathan Newton/The Washington Post)

With eight months left on his contract, goalkeeper Bill Hamid is deep in negotiations with D.C. United regarding a multiyear extension, multiple sources told the Insider on Wednesday.

Hamid, 26, has been the club’s first-choice goalkeeper since 2011 and, in his eighth full season, holds the longest continuous service on the roster. A new deal would come with a pay raise; last year, according to MLS players’ union data, he earned $325,000 in base salary and $370,500 in overall compensation.

None of the figures involved in the negotiations wanted to comment.

However, one source familiar with the discussions said the sides have been “talking for some time.” Another source cautioned that talks are promising but could take a turn.

Hamid is United’s career goalkeeping leader in appearances, victories, shutouts and saves.

If the Annandale, Va., native plays out his contract this year, he would not be eligible for MLS free agency. (A player must be 28 years old with eight years of service in the league.) To remain in MLS, he would have to re-enter talks with United or seek a trade with fresh negotiations.

A move abroad without a transfer fee would allow United to retain his MLS rights.

Hamid seemed destined for Europe by this stage of his career, with United willing to entertain transfer offers. But surgery on Hamid’s right knee each of the past two winters preempted U.S. national team assignments during MLS’s offseason and, consequently, inhibited his broader ambitions.

Without U.S. appearances, Hamid has had to prove his value to potential suitors in MLS exclusively. He is, though, in the mix for selection to the CONCACAF Gold Cup squad this summer as Coach Bruce Arena is likely to summon several secondary candidates. Arena has spoken highly of Hamid in the past.

The 2014 MLS goalkeeper of the year was in terrific form in recent victories against the Philadelphia Union and New York City FC but was beaten twice against the New York Red Bulls last weekend. United will visit the New England Revolution this weekend.