Refactor literal by modernizing obj-c
Fix close stream bug. Refactor max concurrent connection variable as macro.