BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 10-23-2008, 07:06 AM   #1
max82
New Member
 
Join Date: Oct 2008
Model: 8700
PIN: N/A
Carrier: eplus
Posts: 2
Default Socket problems

Please Login to Remove!

Hi there,

in our application we open a SocketConnection to a server and transfer about 200kb between BB and server (in turns, not at once). Somewhen, the screen blanks, the red LED turns on and the device restarts.

This error only occurs on OS 4.5, not on 4.3 or 4.2.1. We tried several 4.5 versions (4.5.0.69 and 4.5.0.55, by different providers) and this error is reproducable. When I figured out that the systems reboots exactly like the linger value was set (100 secs), I set it to 0. Nothing changed. But when I set RCVBUF and SNDBUF to Nokias defaults (4096 bytes instead of BB 65536 bytes), it sometimes, but not always, works. So it seems to be a networking issue. Everything works fine in the simulator. The devices we use are 8110, 8700g and 8800.

I tried to contact the RIM support but with no success as I cannot provide the source code because of many dependencies. But as far as I can see, we implemented it the way it is shown in the developer's guide.

I added "deviceside=true" (alternatively also with adding APN data) but it always says in the log APN: 'blackberry.net'. Is this right?

A workaround would be fine as I don't want to say to our customers that they have to downgrade their device to a specific version.

Any ideas?
Offline  
Old 10-24-2008, 02:50 AM   #2
max82
New Member
 
Join Date: Oct 2008
Model: 8700
PIN: N/A
Carrier: eplus
Posts: 2
Default

Okay, we finally found a workaround for this. The thing is, we implemented our own RPC library and are sending single data chunks to the server before we receive the answer. BB OS 4.5 seems to have problems handling this.

So now, we serialize the data to a byte array and then send this to the OutputStream. This way it works!
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013 picture

Genuine A1417 OEM Battery Apple Macbook Pro 15 Retina A1398 Mid 2012 Early 2013

$37.90



NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch picture

NEW OEM Battery A1466 A1369 A1496 A1405 A1377 A1466 for MacBook Air 13 inch

$31.90



OEM Battery for MacBook Pro 17

OEM Battery for MacBook Pro 17" A1309 A1297 Early 2009 Mid 2009 2010 MC226

$36.90



iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M picture

iPhone 13 12 11 PRO MAX XR XS 8/7/6 Fast Charger USB Data Cable cord 10 feet/3M

$4.99



A1618 NEW OEM Battery for MacBook Pro 15

A1618 NEW OEM Battery for MacBook Pro 15" Retina A1398 Mid 2015 020-00079

$43.90



NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015 picture

NEW OEM A1618 Battery for Apple MacBook Pro 15” Retina 99.5Wh A1398 Mid 2015

$43.90







Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.