Is your InputSteam blocking? As per the API for InputStream:


This method blocks until input data is available, end of file is detected, or an exception is thrown.