network.request fail fetch

There is one serious bug while using “network.request”
when u’r using serval network.request in a very very short time.
U will find it fail fetching datas.
It happens only in iOS6.
So if u r using network.request in your app.
Be careful, if u wanna know how it happened?
Try code below in iOS5 and iOS6, u will find the difference very obviously.

widget = require "widget"  
  
function updateOfficialLottery(callbackListener)  
 local function networkListener( event )  
 if ( event.isError ) then  
 native.showAlert("error", "request error", {"OK"})  
 else  
 end  
 native.setActivityIndicator(false)  
 end  
  
 network.request( "http://thedoubleyoungs.appspot.com/json/lottery.do?method=get&date=101/09/28", "GET")  
 network.request( "http://thedoubleyoungs.appspot.com/json/lottery.do?method=get&date=101/09/27", "GET")  
 network.request( "http://thedoubleyoungs.appspot.com/json/lottery.do?method=get&date=101/09/26", "GET", networkListener)  
-- network.request( "http://developer.coronalabs.com/forum/2012/08/09/searchable-list-view", "GET", networkListener ,params)  
  
end  
  
local onButtonEvent = function (event )  
 native.setActivityIndicator(true)  
 updateOfficialLottery()  
end  
  
local myButton = widget.newButton{  
 id = "btn001",  
 left = 100,  
 top = 200,  
 label = "Request Button",  
 width = 150, height = 28,  
 cornerRadius = 8,  
 onRelease = onButtonEvent  
}  
  

put them in main.lua
and run in device
both iOS5 and iOS6.
and u will know what i said.
Be careful while u r using request in a very short time.
Plz fix it very soon.
Thanks
Owen [import]uid: 25057 topic_id: 31679 reply_id: 331679[/import]

Owen, Thanks [import]uid: 22631 topic_id: 31679 reply_id: 126533[/import]

Owen, Thanks [import]uid: 22631 topic_id: 31679 reply_id: 126534[/import]

@Tom & corona staff

i try to avoid it by using request in sequence.
It doesn’t help.

I have no idea how to avoid it(I tried but failed).
So i have delivered my app yesterday and i found this bug still exists and is critical for my app.
So i drop my app from itunes connect till u fix this bug.
Plz check this.
thanks
Owen [import]uid: 25057 topic_id: 31679 reply_id: 126536[/import]

Owen, Thanks [import]uid: 22631 topic_id: 31679 reply_id: 126533[/import]

Owen, Thanks [import]uid: 22631 topic_id: 31679 reply_id: 126534[/import]

@Tom & corona staff

i try to avoid it by using request in sequence.
It doesn’t help.

I have no idea how to avoid it(I tried but failed).
So i have delivered my app yesterday and i found this bug still exists and is critical for my app.
So i drop my app from itunes connect till u fix this bug.
Plz check this.
thanks
Owen [import]uid: 25057 topic_id: 31679 reply_id: 126536[/import]

any progress? [import]uid: 25057 topic_id: 31679 reply_id: 126785[/import]

any progress? [import]uid: 25057 topic_id: 31679 reply_id: 126785[/import]

We have the same problem on some Android devices:

11-22 12:56:01.376: I/Corona(15703): no data server error: (table: 0x1066210) {
11-22 12:56:01.376: I/Corona(15703): “name”=networkRequest,
11-22 12:56:01.376: I/Corona(15703): “status”=200,
11-22 12:56:01.376: I/Corona(15703): “url”=http://xxxxx,
11-22 12:56:01.376: I/Corona(15703): “isError”=false,
11-22 12:56:01.376: I/Corona(15703): “response”=,
11-22 12:56:01.376: I/Corona(15703): }

Wireshark tells us the data left our server.

As we are used to bugs taking ages until fixed, this is probably only fixable in the short term by building another native extension to work around corona bugs. [import]uid: 128890 topic_id: 31679 reply_id: 132072[/import]

Can you build a simple reproducible test case? Have you filed a bug report on it yet?

[import]uid: 19626 topic_id: 31679 reply_id: 132079[/import]

See raymondchengs post for a test case. Works for me if each call is delayed for a few seconds (timer.performDelayed).

A collegue said something vague about a pervious (fixed) http bug where memory was deallocated in the wrong thread. [import]uid: 128890 topic_id: 31679 reply_id: 132159[/import]

The request for the simple test case was for the purpose of filing a bug report. I didn’t realize that was a complete program that he could submit with a bug report and not just a snippet. Mia Culpa [import]uid: 19626 topic_id: 31679 reply_id: 132171[/import]

We have the same problem on some Android devices:

11-22 12:56:01.376: I/Corona(15703): no data server error: (table: 0x1066210) {
11-22 12:56:01.376: I/Corona(15703): “name”=networkRequest,
11-22 12:56:01.376: I/Corona(15703): “status”=200,
11-22 12:56:01.376: I/Corona(15703): “url”=http://xxxxx,
11-22 12:56:01.376: I/Corona(15703): “isError”=false,
11-22 12:56:01.376: I/Corona(15703): “response”=,
11-22 12:56:01.376: I/Corona(15703): }

Wireshark tells us the data left our server.

As we are used to bugs taking ages until fixed, this is probably only fixable in the short term by building another native extension to work around corona bugs. [import]uid: 128890 topic_id: 31679 reply_id: 132072[/import]

Can you build a simple reproducible test case? Have you filed a bug report on it yet?

[import]uid: 19626 topic_id: 31679 reply_id: 132079[/import]

See raymondchengs post for a test case. Works for me if each call is delayed for a few seconds (timer.performDelayed).

A collegue said something vague about a pervious (fixed) http bug where memory was deallocated in the wrong thread. [import]uid: 128890 topic_id: 31679 reply_id: 132159[/import]

The request for the simple test case was for the purpose of filing a bug report. I didn’t realize that was a complete program that he could submit with a bug report and not just a snippet. Mia Culpa [import]uid: 19626 topic_id: 31679 reply_id: 132171[/import]