satyagraha / gfm_viewer

An Eclipse plugin providing an accurate view of GitHub Flavored Markdown (.md) files
94 stars 27 forks source link

GFMV 2.0 "connection still allocated" error #65

Closed paulvi closed 10 years ago

paulvi commented 10 years ago

I little bit weird error

2

satyagraha commented 10 years ago

I think this may be some kind of multi-thread concurrency issue. I'll see if I can create a stress test to reproduce it. Thanks for the report!

satyagraha commented 10 years ago

I've identified the problem with a tip from http://tech.chitgoks.com/2011/05/05/fixing-the-invalid-use-of-singleclientconnmanager-connection-still-allocated-problem/ ; I created a failing test, which now passes after the fix.

There will be a new beta to try (1.8.5) in the next few days.

satyagraha commented 10 years ago

Also credit to: http://garygregory.wordpress.com/2011/09/09/multi-threaded-unit-testing/ for an elegant approach to the general issue of multi-thread testing.

satyagraha commented 10 years ago

Fixed in 1.9.0.