Tim Connolly's overtime goal gave Toronto a 4-3 win over the Edmonton Oilers on Wednesday night and snapped the Maple Leafs' four-game losing streak.

After the Oilers came in on a 3-on-1 rush, the Maple Leafs turned around and went up ice with a similar break of their own. Joffrey Lupul found Connolly with a pass for the winning goal at 1:39.

Lupul, Matthew Lombardi and Jake Gardiner also scored for the Maple Leafs (29-23-6), who had been outscored 10-1 in their previous two games.

Ben Eager, Taylor Hall and Jordan Eberle had goals for the Oilers (22-28-6), whose four-game home winning streak ended.

It didn't take the visiting Maple Leafs long to get their many fans at Rexall Place going as they scored on the game's first shot just 41 seconds in. Lupul used defender Ladislav Smid as a screen and put the puck between the pads of goalie Nikolai Khabibulin for his 23rd goal of the season.

Less than a minute later, Toronto made it 2-0 after Cody Franson sprung Lombardi on a breakaway. Lombardi sent a backhander past Khabibulin, causing Edmonton to take its timeout before the game was two minutes old.

The tactic paid off quickly as Edmonton made it 2-1 at 2:32 when Lennart Petrell stole the puck from behind the net and fed it in front to Eager, who drilled a shot past goalie James Reimer.

The Oilers tied it 2-2 at 8:15 of the second when Sam Gagner threw a puck on net that went through defenseman Dion Phaneuf's legs to Hall, who tipped in his 20th of the season.

Khabibulin had to come up big to keep it tied with five minutes left in the second when Cam Barker gave up the puck in front of the Edmonton net. Khabibulin bailed him out with a big save in tight on Tyler Bozak.

Edmonton outshot Toronto 13-3 in the second period.

The Oilers almost went up 3-2 in the opening minute of the third, but Ales Hemsky put his second shot off the post.

The Leafs regained the lead seven minutes into the third period, on just the second power play of the game, when Gardiner ripped in a shot from the point.

However, Edmonton tied it again with 3:04 left in regulation. Eberle fought off David Steckel and picked the top corner on Reimer for his 25th goal.

NOTES: It was the second and final meeting of the season between the teams. The Maple Leafs beat the Oilers 6-3 in Toronto on Feb. 6. ... Toronto lost 5-1 at Calgary on Tuesday in the first of back-to-back games in Alberta. ... Oilers D Corey Potter has missed the last few practices because of a groin injury. That paved the way for Barker to return to the lineup. ... First overall draft pick Ryan Nugent-Hopkins is skating but has yet to begin full practices for Edmonton. He is expected to be out for at least another week. Despite a pair of shoulder injuries, Nugent-Hopkins remains two points behind New Jersey's Adam Henrique in the rookie scoring race with 35 points in 40 games. ... Toronto D Luke Schenn was a surprise healthy scratch after taking the pregame skate.