Some RST are seen during TCP disconnection when using SSL connection

Some RST are seen during TCP disconnection when using SSL connection
It is expected that the disconnection sequence for a secure connection to be as follow:
client ************************* server
--- alert (warning, close notify) --->
<--- alert (warning, close notify) ---
in any order;
and then:-
--------------- FIN, ACK ------------>
<----------- FIN, ACK ---------------
------------------ ACK ----------------->
Instead of the sequence described above, the TCP connection for a secure connection is closed with an RST.
For instance, Wireshark capture shows that an SSL+SASL TCP connection is closed in the following manner:
client ************************** server
--- alert (warning, close notify) ---->
---------------- FIN, ACK ------------>
<--- alert (warning, close notify) ---
<----------- FIN, ACK ---------------------
------------ RST -----------------> *(This RST message should be investigated, an ACK message was expected)*
Server: OpenLDAP: slapd 2.4.23
Client: (java version "1.6.0_16")
import javax.naming.*;
import javax.naming.directory.*;
import javax.naming.ldap.InitialLdapContext;
import java.util.Hashtable;
import javax.naming.ldap.InitialLdapContext;
import javax.naming.ldap.StartTlsRequest;
import javax.naming.ldap.StartTlsResponse;
class Client {
private static final String DEFAULT_INITIAL_CONTEXT_FACTORY = "com.sun.jndi.ldap.LdapCtxFactory";
public static void main(String[] args) {
//SSL
try {
System.setProperty("javax.net.ssl.keyStore", "c:\\\keystore");
System.setProperty("javax.net.ssl.keyStorePassword", "adminadmin");
System.setProperty("javax.net.ssl.trustStore","c:\\\keystore");
System.setProperty("javax.net.ssl.trustStorePassword","adminadmin");
// Set up environment for creating initial context
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
// Must use the name of the server that is found in its certificate
env.put(Context.PROVIDER_URL, "ldap://1.2.4.4:16415");
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "cn=manager,dc=operator,dc=com");
env.put(Context.SECURITY_CREDENTIALS, "password");
env.put(Context.SECURITY_PROTOCOL, "ssl");
// Create initial context
InitialLdapContext ctx = new InitialLdapContext(env, null);
// Close the context when we're done
ctx.close();
catch(Exception e)
e.printStackTrace();
Is it a bug ? Can I expect to have a patch for this issue?
Regards,
Olivier
Edited by: 975464 on 6-Dec-2012 11:21 AM

I agree it should be an ACK not an RST but it doesn't really matter. The connection is closed, and as neither the client nor the server has any pending data it is benign. Worth investigating in a later JRE.

Similar Messages

  • Got problem when using SSL connection when using my own web server

    hi all,
    I need to create a SSL connection to a website, i'm using Java 5 so i just append use the following code,
    System.setProperty("https.proxyHost","90.0.0.122");
              System.setProperty("https.proxyPort","3128");
              URL verisign = new URL("https://www.verisign.com");
              //URL verisign = new URL("https://localhost");       
              //URL verisign = new URL("https://90.0.0.30");
              BufferedReader in = new BufferedReader(
                        new InputStreamReader(
                                  verisign.openStream()));
              String inputLine;
              while ((inputLine = in.readLine()) != null)
                   System.out.println(inputLine);
              in.close();
         }Here when i run the program with arg https://www.verisign.com it works fine, when i replace it with https://locahost it shows the follwing error
    Exception in thread "main" java.io.IOException: HTTPS hostname wrong:  should be <localhost>
         at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:493)
         at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:418)
         at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
         at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
         at java.net.URL.openStream(URL.java:1007)
         at URLReader.main(URLReader.java:93)i dono why this happening any can pls help me out to solve the problem

    HI all ,
    I find a solution from the post
    http://forum.java.sun.com/thread.jspa?threadID=521779&start=0
    Thanks

  • Creating GUI status menu - some entries are seen in red

    hi
    while creating menus in gui status, some entries are seen in red
    why these are in red, i dont know the reason
    cud u please help ?
    thanks

    Hi,
    These are inactive functions.  You can toggle them to Active/Inactive with the menu painter function F7.
    Regards,
    Jamie

  • Ichat, AIM, & Adium all frequently disconnect when using Air

    Ichat, AIM, & Adium all frequently disconnect when using Airport. I use a Linksys Wireless Router with an Airport extreme card. When directly connected to the router, I have no problem. Using a PC with Windows XP, AIM operates fine. Safari and Firefox work fine, although sometimes I receive errors connecting to pages, when I try again no problem. Using any of the chat programs, I lose connection, but then can reconnect. After a few times, the AOL servers will prevent login.
    I use COMCAST Cable internet service. My wireless router uses WEP encryption. I would switch to an AIrport Base station, but doubt it would correct the problem.
    I have had this problem previously, but it corrected itself. now it is making chat programs unusable.
    Any ideas?

    Hi John,
    By default Linksys units normally have the IP address of 192.168.1.1
    Is this true for both your units or have you changed one of them ?
    You may only find this out if you connect directly to the Modem one.
    Also you have not said if only one of them is doing DHCP.
    Example pic 3 on this page. This shows this device as getting it own contact IP address by DHCP (like from your ISP). Further down the page in the pic it shows the device is also acting as a DHCP server to the local net.
    If your router is set up like this it could be getting an IP address usng DHCP like this device shows and that would tend to mean that the Modem is acting as a DHCP server as well.
    If both devices still have the default IP addresses you will have conflicts, which probably explians the problems you have.
    Ralph

  • My photos are sharp but become soft when used in and IDVD slide show.

    My photos are sharp but become soft when used in and IDVD slide show. How can I prevent this from happining??

    Hi,
    I suggest that you try unchecking both of the crop options - landscape & portrait.
    To re-create your situation, I had to check the crop for landscape pictures option.
    I prefer to have control over any cropping so I tend to crop each image first before creating the slide show.
    Brian

  • Detect Client Disconnect When using RTMP

    Hello,
    I hava a Java Server and Clients using RTMP. I've read somewhere that I can detect instantly client disconnection when using RTMP. However I cannot find an example code (in Java) that demonstrates this functionality? Can you help me please?

    I am not sure how your client looks, however the lient connect using NetConnection under the hood which spits NetStatusEvents's and you can listen to them ...
    C

  • ADUC home drive disconnected when using GPP drive mappings

    Hello,
    We have an issue with mapping home drives and using group policy preferences to map all other drives for our users.
    We have users in multiple locations and each location has it's own storage, users in a location have their home drives on that location's storage. We assign the home drive to a user using the profile tab in the ADUC user account settings (\\storage\users$\%username%).
    All other drive mappings are made through group policy preferences. This is working as expected in Windows XP.
    We are preparing for a migration to Windows 7 and Windows 7 deals with this situation in a bit different manner, for some reason when you log on to Windows 7 the ADUC account settings are made first (thus connecting the home drive) and after this the group
    policies are applied and prior to the first drive mapping being made all connected drives (and with this the home drive) are disconnected and then the drive mappings are applied. This behaviour occurs with replace mode as well as with update mode.
    To work around this the home drives could be mapped using GPP but since we have users with home drives in multiple locations and drive mappings in GPP's do not understand the %HOMESHARE%%HOMEPATH% syntax we have to use a drive mapping per location and for
    each drive mapping use item level targeting and put the users into the appropriate security group and this is more administrative burden then we'd like. Dividing users into OU's per location is not really a workable option as well.
    Has anyone seen this issue before and/or has some ideas on how to deal with this or has a workable workaround/solution ?

    Thank you for the reply. I have seen the article you linked to, from that I tested and found that in our situation we experience the same behaviour.
    The home drive is connected to P through the AD user account profile tab, the other drive mappings are gpp drive maps and are starting from G on and are set to replace, use first available, run in logged-on user's security context, remove this item when
    it is no longer applied and item level targeting is set to a security group, we have 20+ drive mappings using these settings. I have tested with setting the mapping to Update but the results are the same.
    I am able to connect to the home drive manually using a UNC mapping. When I test using F for the home drive in AD user account profile tab the problem is gone. Changing the home drive letter is not an option though because we have several applications that
    rely on that letter P.

  • ADSL Disconnects when my mac connects to the network or when ever it wants

    Hi there.
    My MacBook Pro Loves to pull fits on the Network.
    What it dose is when i open the lid on my laptop it disconnects the internet. So the ADSL Light Turns off on the router.
    Whats wrong with it?

    Other people on the network have no issues with bit torrent
    Yes but they may be using all the routers resources.
    If you have multiple devices on the network the router may just be crashing. I have seen this before with thompson routers. I have seen Thompson 780wl crash with more than 3 devices connected to it. When used with 1 device it was fine.
    Dlink in my experience are buggy at the best of times. I would suggest you flash your router with the latest firmware you can download from dlink.
    I would suggest as william indicated replacing your router with a more efficient one.

  • WRT54G Disconnects when another computer connects

    Hello,
    I have a WRT54G v5 Wireless-G Broadband Router. My 100MB fiber optic line is connected directly to the router and the router connects to my internet account with no problem. The main computer that I use is directly connected to the router via LAN cable to one of the 4 ports. At this point I never have any issues at all and no disconnections. Then when my laptop connects wirelessly to the router for internet access the router disconnects and reconnects immediately. Then I can resume work as normal until the next time the laptop connects to the router again. In the router settings the wireless area is set to "B-Only" on Channel 11 2.462GHz.
    Can anyone tell me how to fix this issue so that the laptop can connect without causing the router to disconnect and reconnect each time?
    Thank you!!
    Ed

    So you had this same problem? And setting the router to use either B or G solved it? That seems strange. I have 4 computers. 2 are wired to 2 of the 4 ports. Other 2 are wireless using G-capable adapters. So I configured my router to do G only. I figured why not--it is one more step in security since B clients won't even be able to connect. I'm also sure I read something in the Linksys docs that implied it was better to lock the router to one or the other if you know that's all you need to support.
    Anyway, I'm going to try this like you suggest. I don't have the exact same problem. My problem is that I just lose connection between computers and the router "randomly" for 10 seconds to 2 minutes then mysteriously the wireless network will be found again. The signal is either non-existent or excellent. The router is about 10 feet from the computers and without any walls between. My router is a v1--old, but I have latest firmware available as of last week.

  • Windows 7 'File server' disconnects when XP machine connects to network

    Hi guys,
    We have a small office setup here, we have two Windows 7 machines, three Windows XP machines and one Windows 7 machine that acts as a fileserver (folder sharing and an SVN repository).
    Every morning, I turn up to work, turn on my Windows 7 machine and the system works fine, but, as soon as one of my collegues turn up and boot up their Windows XP machines, the fileserver disconnects. The only way to get the fileserver up and running is
    to restart it, this is obviously tedious and irritating. It only happens when an XP machine connects to the network and not when a Windows 7 machine connects.
    Does anybody have an experience with this sort of issue or have an suggestions to resolve it?
    Thanks, Simon.

    Firstly, I am a Tier III Computer Technician/Software Programmer/Network Engineer who has been working on MS OS' since DOS3.
    Secondly, Someone named Alex Zhaozx gets the ID10T award as he marked this as a solution. Alex... How is posting a MS OS license a resolve? 
    There is no resolution posted here.
    For understanding, all references to Windows 7 will be marked as TRAP7 in the following info. After reading, you will understand why.
      The other major note Simon has not mentioned, is that when the "disconnect" happens, all Windows XP machines can still interface with each other over the network perfectly (accessing each others Shares and drive mappings with zero network connection
    issues). The TRAP7 machines can interface will all facets of each of the TRAP7 and Windows XP computers on the network with zero connection issues. It appears MS has placed a condition or timer to cause the disconnect to XP on introduction to the network. Simon
    is slightly incorrect is his statement this only happens when a XP machine is booted, as it happens on all connection methods (whether it be wake from sleep and attempt to reconnect or access TRAP7 share/drive, idle computer attempting to access TRAP7 share/drive,
    Windows XP computer attempting to access files on the TRAP7 file server for the first time, after each have been up and running independently (on the network) perfectly for hours...
    We have a larger scope than Simon with 45 machines and 17 of them being Windows XP, the others are TRAP7 (32 and 64 bit varied) with 1 on Vista (The beginning of the end for MS OS'). 
    I have been searching all MS sites and the other techie sites for a resolve and there has not been one "valid" resolution to this problem they have caused. Or was is my fault for using Windows 7 on a near perfect network?
    C'mon maaaan. (intended for Bill Gates) Get this resolved or get out of the OS game, there are so many better OS's out there. Stop TRYING to DO things and start DOING them the right instead.
    Belief: This is an issue caused by MS with full intention of forcing everyone to fully convert all at once because they are not getting the money they used to, as the global economy is now whacked. You notice... They have never stepped up to say anything
    in this post. They just quickly made an attempt to brush this under the carpet.
    BTW Alex Z: When you are ready to step up and get involved, let me know. I will get you any technical information you need to get this resolved.
    John

  • FMS auto disconnects when using a class

    I am trying to implement a very simple class that will create
    an instance of the NetConnection object and connect to the FMS
    server. However, the client will connect then immediately
    disconnect when the swf is published. My code is as follows...
    FLA Code:
    import _includes.*;
    var obj_conn:Conn = new Conn();
    obj_conn.connect();
    Conn.as Code:
    class _includes.Conn
    public function Conn()
    public function connect()
    var nc:NetConnection = new NetConnection();
    nc.connect("rtmp://localhost/classtest");
    Please note that the connection works fine if I just create a
    NetConnection variable on the FLA itself in the timeline. Any
    suggestions/help would be appriciated!

    it think this is happen because you use local variable : your
    variable is delete at the end of connect() so your NetConnection
    will be closed in the same time.
    try this:
    Conn.as Code:
    class _includes.Conn
    private var objNetCon:NetConnection;
    public function Conn()
    public function connect()
    this.objNetCon = new NetConnection();
    this.objNetCon.connect("rtmp://localhost/classtest");
    }

  • Disconnects when using ethernet

    I have no idea why my macbook does this, but every few days, for a period of a few days, it disconnects itself from the internet every minute or so.
    Every time it does this, i've noticed it changes its IP address. I suspect that has nothing to do with it though.
    I'm using my university's network via ethernet. If I connect to their campus wireless network, i don't encounter the same problem. That isn't a good alternative though, as it is considerably slower. also, my dorm room is just far enough away that the signal can be inconsistent.
    I considered that my ethernet cable/wall plug might be faulty. I tested out several other cables and wall jacks and encountered teh same problem. Also, that wouldnt' explain how i do get a few days of normal connectivity between these periods of disconnecting.
    I honestly have no idea what the problem could be. I know very little about networking...
    Any help would be much appreciated!

    If you using DHCP ip address, the ip changes might not affect that and wont disconnect you from internet.
    It might changes when you try to reconnect and give you new ip address since the previous one already taken by others.
    Consult your dorm network administrator about your problem, and try to turn off your wireless while using wired connection (I don't see it related, but give it a shot).
    Good Luck.

  • Network disconnects when using youtube on ipad air

    network disconnects and turns it self off when using youtube app on ipad air

    Hello paulm250m
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    Best of luck,
    Mario

  • Why are Image Export Sizes Doubled when using Save vs. SaveForWeb&Devices?

    Hi Folks
    Maybe I'm missing something here ...
    I have 2 versions of an action I use to batch process images. One uses the Save As dialogue and the other uses SaveForWeb&Devices. However, the image sizes created using the latter are about 50% smaller than those created with the former. The two actions differ only in the Save step - I duplicated the original and swapped the save step in the action.
    Is SaveForWeb&Devices usign a more efficient optimisation algorithm or am I missing something?
    The reason for using the Save As dialog is that Batch Processing is able to override the save location, whereas I had trouble overriding save location in a batch process which used an Action that Saved using SaveForWeb&Devices.
    Cheers
    Richard
    P.S. I also find this size doubling takes place when using the Image Processing script supplied with PS. I'm on PS5 on OSX10.6.8.

    SfW throws out redundant custom data, when the normal JPEG save does not. Using the normal save e.g. also retains clipping paths (10 years ago people used that al lthe time for print stuff) and of course also more info on color management, user metadata and what have you. Therfe may bne more specific optimizations in SfW, but that's something Mr. Cox can probably answer better...
    Mylenium

  • Acer S7 screen flickers during videos and when using Microsoft Office Screen is white

    Had my Acer S7-392 for about 9 months and it has a problem that i've not been able to resolve. - When on some websites or watching video's (embedded into the website like on Facebook) the picture flickers and is unwatchable. If you scroll so that a little of the video is offscreen the problem stops.- Also when using microsoft office programs the screen just goes white and I can't do anything without closing the programs via task manager. I've made sure I have all the right drivers. Intel sends me to the Acer website for the drivers and I have the most up to date of those. I have phoned microsoft and they say that it is not them and even when remote accessing the machine they cannot see a problem. I'm sure its a graphics problem as other than these two irritating issues the machine works fine. Many thanks in advance for anyones help.

    Hi, I don't own an external monitor. I can take the laptop to work and use one there. If I do that and the same problem happens what does that mean? If the problem is not repeated on the monitor what does that also mean? If I can't use a monitor what else can I do? Thanks. Tom

Maybe you are looking for

  • Unable to view or read email

    I've now got a weird problem with the 2.0 firmware; The mail in my inbox now only shows the most recent message, no matter how many are in there or how many are new. This is frustrating as I constantly have the new message number on the mail icon, wi

  • How to deal with the checkbox columns in the two reports on the same page

    Hi, I have 2 reports having checkbox column in the same page. Now how can i differentiate between these 2 checkboxes column and based on them the values in the reports ,while i have to do some processe based on these reports using checkboxes. Thnks i

  • Connexion between Ipad2 and Apple TV

    I try to establish connexion between my Ipad2 and Aplle TV but I'mm not able to receive any picture but only sound ?

  • Binary file read with bit offset..not byte offset.

    hi,            i want to read a binary file with some offset ..not in bytes...  offset in bits..my data is a single bit data stream size of 1GB ,after skipping particular bit offset i want to read the data in byte order.. Indrajit | [email protected]

  • Resizing and Printing a .svg File

    I have a svg file that's a map that I downloaded from OpenStreetMap.com.  What I'd like to do is divide map into sections, rearrange them and then increase the size of it up to 6 feet in diameter and print it.  Is all of this possible to do with an s