Flows of gas through a protoplanetary gap