OneBusAway / onebusaway-gtfs-realtime-from-nextbus-cli

Produce GTFS-realtime data from a NextBus API data source.
Other
16 stars 9 forks source link

Bugfix: ensure InputStream is explicitly closed. #11

Closed sdjacobs closed 7 years ago

sdjacobs commented 7 years ago

In NextbusBusApiService.digestUrl(), ensure the InputStream returned by DownloaderService.openUrl() is explicitly closed. If InputStream is not closed and it is not consumed until the end of the stream, Apache HttpClient will not close the connection and will be unable to open new connections.

See: http://stackoverflow.com/questions/4775618/httpclient-4-0-1-how-to-release-connection