Receiving data with blocking queue