parallel incoming req

This commit is contained in:
Yan
2017-10-20 13:25:24 +06:30
parent 4eb9fe74e1
commit 25bc6f1c26
3 changed files with 14 additions and 3 deletions

View File

@@ -96,7 +96,18 @@ class Api::OrdersController < Api::ApiController
end
end
@status, @booking = @order.generate
# for parallel order
# i = 0
remoteIP = ""
begin
@status, @booking = @order.generate
# i += 1
puts "RRR"
puts @booking.booking_id
puts request.remote_ip
remoteIP = request.remote_ip
end while request.remote_ip != remoteIP
end
# render json for http status code