Menu

#1727 shutdown WebConnectionWrapper to clear wrapped web connection

2.18
closed
None
1
2015-10-28
2015-10-27
standlove
No

When using a custom WrappedWebConnection, the inner HttpWebConnnection is never closed properly.

Can you fix this bug by adding the following stuff in the next version:
1. Add a shutdown method in WebConnection interface.
2. In WebClient's close method, call webConnection.shutdown() directly. So if it's a instance of WrappedWebConnection, the inner web connection is closed properly.

Thanks.

Discussion

  • Ahmed Ashour

    Ahmed Ashour - 2015-10-27

    The proposed solution is to let WebConnection extend AutoCloseable. and to .close() it from WebClient.close().

    @Others: any objection?

     
  • Ahmed Ashour

    Ahmed Ashour - 2015-10-27
    • status: open --> accepted
    • assigned_to: Ahmed Ashour
     
  • Ahmed Ashour

    Ahmed Ashour - 2015-10-28
    • status: accepted --> closed
     
  • Ahmed Ashour

    Ahmed Ashour - 2015-10-28

    Thanks for reporting, fixed in SVN.

     

Log in to post a comment.