[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-24 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c9


--- Comment #9 from Franz-Gerold Url gerold@efm.at 2011-08-24 11:28:13 
UTC ---
(In reply to comment #8)
 I'm hoping this was just another incarnation of the thread-pool bug that
 gonzalo fixed (bug #12 on bugilla.xamarin.com)

It seems so, et least in MonoTouch V4.1.0 beta it works fine

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-24 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c10


Jeffrey Stedfast j...@xamarin.com changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #10 from Jeffrey Stedfast j...@xamarin.com 2011-08-24 14:39:26 
UTC ---
Awesome! This is good news!

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-16 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c8


--- Comment #8 from Jeffrey Stedfast j...@xamarin.com 2011-08-16 15:02:29 UTC 
---
I'm hoping this was just another incarnation of the thread-pool bug that
gonzalo fixed (bug #12 on bugilla.xamarin.com)

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-15 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c7


--- Comment #7 from Jeffrey Stedfast j...@xamarin.com 2011-08-15 14:26:40 UTC 
---
I've confirmed this last week, btw.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-03 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c6


Franz-Gerold Url gerold@efm.at changed:

   What|Removed |Added

 Status|NEEDINFO|NEW
   InfoProvider|gerold@efm.at   |

--- Comment #6 from Franz-Gerold Url gerold@efm.at 2011-08-03 08:33:04 
UTC ---
Ok, here is the code:
This are code snippets. I didn't tried it in this short form, only with the
whole framework.

// === SERVER ===

 #region Testing WEB methods
-

[WebMethod]
public byte[] TestWsHugeReturnConfigurable(float sizeInMegabyte)
{
int size = Convert.ToInt32(sizeInMegabyte * 1024f * 1024f);
byte[] myByteArray = new byte[size];
return myByteArray;
}

#endregion WEB Methods


// === CLIENT ===

TestWebS.Service1 myWebS = new TestWebS.Service1();
myWebS.Timeout = 5;
DateTime DT = DateTime.Now;
try
{
float v = 5f; // 5 MB 
byte[] bigRetVal = myWebS.TestWsHugeReturnConfigurable(v); 
{
catch(Exception ex) { 
string msg = Toolkit.GetExceptionStr(ex, Toolkit.ShowTime(DT,
DateTime.Now));
Toolkit.showMsgBox(msg);
}

// --- Toolkit Funktions 

public static bool MsgBoxMutex = true;

public static string GetExceptionStr(Exception ex)
{
return GetExceptionStr(ex, 1);
}
public static string GetExceptionStr(Exception ex, string time)
{
return Time:  + time + \n\n + GetExceptionStr(ex);
}
private static string GetExceptionStr(Exception ex, int depth)
{
string msg = depth == 1 ?  : \n\n\n;

msg += Error ( + depth.ToString() + )\n;
msg += ex.Message ==  ? no message : ex.Message;
msg +=  \n\nSource:\n;;
msg += ex.Source ==  ? no source : ex.Source;
msg += \n\nType:\n;
msg += ex.GetType() == null ? no type : ex.GetType().ToString();
msg += \n\nTargetSite:\n;
msg += ex.TargetSite == null ? no targetsite :
ex.TargetSite.ToString();
msg += \n\nTrace:\n;
msg += ex.StackTrace ==  ? no trace : ex.StackTrace;

if(ex.InnerException != null) msg +=
GetExceptionStr(ex.InnerException, ++depth);

return msg;
}

public static string ShowTime(DateTime dt1, DateTime dt2)
{
if(dt1.Year == 1) return ;
if(dt2.Year == 1) return ;
TimeSpan sp = dt2.Subtract(dt1);
return sp.TotalMilliseconds.ToString() +  ms;
}

public static void showMsgBox(string txt)
{
Toolkit.showMsgBox(txt, );
}
public static void showMsgBox(string txt, string title)
{
if(txt == null) txt = ERROR showMsgBox: The given txt is null;

UIAlertView av = new UIAlertView();
av.Message = txt;
av.Title = title;
av.AddButton(OK);
av.Delegate = new MyMsgBoxDelegate();
av.Show();

Toolkit.WaitFor(ref Toolkit.MsgBoxMutex, 50);
}

public static void WaitFor(ref bool wait, int SleepTime)
{
wait = true;
while(wait)
{
NSRunLoop.Current.LimitDateForMode(NSRunLoopMode.Default); 
if(SleepTime0) 
Thread.Sleep(SleepTime);
}
}

// 
public class MyMsgBoxDelegate : UIAlertViewDelegate
{

public override void Clicked (UIAlertView alertview, int
buttonIndex)
{
//Toolkit.MsgBoxIdx   = buttonIndex;
Toolkit.MsgBoxMutex = false;
}
public override void Canceled (UIAlertView alertView)
{
//Toolkit.MsgBoxIdx   = -1;
Toolkit.MsgBoxMutex = false;
}
}

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-02 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c5


--- Comment #5 from Jeffrey Stedfast j...@xamarin.com 2011-08-02 16:43:23 UTC 
---
Franz:

Can you write a simple server/client test case for us to use to debug this?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-02 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c


Jeffrey Stedfast j...@xamarin.com changed:

   What|Removed |Added

 Status|NEW |NEEDINFO
   InfoProvider||gerold@efm.at

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-01 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c


Miguel de Icaza mig...@xamarin.com changed:

   What|Removed |Added

 AssignedTo|mig...@xamarin.com  |j...@xamarin.com

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-08-01 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c4


--- Comment #4 from Jeffrey Stedfast j...@xamarin.com 2011-08-01 20:30:46 UTC 
---
I'd bet anything that this is a duplicate of bug #690357

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-07-26 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c3


--- Comment #3 from Franz-Gerold Url gerold@efm.at 2011-07-26 09:56:55 
UTC ---
It appears at WLAN too!

The C# Code for monotouch is easy. It's something like this:

TestWebS.Service1 myWebS = new TestWebS.Service1();
myWebS.Timeout = 5;
try
{
float v = 1024f*1024f*5f; 
byte[] bigRetVal = myWebS.TestWsHugeReturnConfigurable(v); 
{
catch(Exception ex) { 
Console.WriteLine(ex.StackTrace  + \nMESSAGE:   +  ex.Message);
}


Unfortunately our chief executive has security reservations to make our
WebServer public. So You have to write your own WebService, which only have to
send a byte-array back.

(In reply to comment #1)
 I wonder if the 3G network is falling asleep?
 
 Do you have a test case for this?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-07-20 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c2


Susanne Oberhauser f...@novell.com changed:

   What|Removed |Added

 AssignedTo|fr...@novell.com|mig...@xamarin.com

--- Comment #2 from Susanne Oberhauser f...@novell.com 2011-07-20 12:14:43 
UTC ---
Reassigning to Miguel for further handling...

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs


[Mono-bugs] [Bug 694862] Synchronous Web-Service (.Net 2.0) call becomes stuck if more than 1 MB is to transmitted

2011-07-18 Thread bugzilla_noreply

https://bugzilla.novell.com/show_bug.cgi?id=694862

https://bugzilla.novell.com/show_bug.cgi?id=694862#c1


Jeffrey Stedfast j...@xamarin.com changed:

   What|Removed |Added

 CC||j...@xamarin.com

--- Comment #1 from Jeffrey Stedfast j...@xamarin.com 2011-07-18 18:52:14 UTC 
---
I wonder if the 3G network is falling asleep?

Do you have a test case for this?

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the QA contact for the bug.
___
mono-bugs maillist  -  mono-bugs@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-bugs