Chrome 67.0. Found this bug https://bugzilla.xamarin.com/show_bug.cgi?id=25402 that looks like the one we are experiencing but I don't see any progress on it. at redis.clients.jedis.Protocol.sendCommand(Protocol.java:90) This fatal error suggests that something is wrong on the network which is causing network packets to drop. multiplexing_api:epoll https://github.com/antirez/redis/blob/unstable/src/networking.c#L1023-1027 Then, if the firewall has a rule that allows incoming traffic from the client, but blocks all outgoing traffic from the server to the client based on the port number or protocol, it may send an RST packet to the client to reset the connection when it receives a SYN-ACK packet from the server. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful. connected_slaves:0 The simple "telnet " works, but when the application tries to send ldaps traffic, the firewall was blocking it from the server network. I could confirm this by tcpdump. The session will be terminated (input error: -2146893008. output error: 0). Ive been scratching my head for two days now. this.dataSource.returnResource(this); By clicking Sign up for GitHub, you agree to our terms of service and I've tried looking in the redis documentation but I didn't find anything about it. at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.ExceptionServices/ExceptionDispatchInfo.cs:62 :1.8.0_261] Making statements based on opinion; back them up with references or personal experience. The detail after that line looks similar to the other reported issues of this type: java.net.SocketException: Connection resetat java.net.SocketInputStream.read(Unknown Source)at java.net.SocketInputStream.read(Unknown Source)at sun.security.ssl.InputRecord.readFully(Unknown Source)at sun.security.ssl.InputRecord.read(Unknown Source)at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)at sun.security.ssl.AppOutputStream.write(Unknown Source). About number 1, I wanna hear the reason of that limitation. Wed May 13 14:39:08 UTC 2020: ERROR: Exception in request: javax.net.ssl.SSLException: Couldn't kickstart handshaking. I'd recommend walking through Connecting to SSL services if you have not already. i used the JedisPool with the default configuration except the timeout, what is like below: pubsub_channels:0 Understanding Connection Reset by peer Understanding RST TCP Flag Check network connectivity Check remote service port is open Check application log on remote server Check related Linux kernel parameters Check Application heartbeat configuration Check OS metric on peer side Connection Reset by peer means the remote side is terminating the session. 1 I use image_picker and ftpconnect to take a picture and upload it into distant FTP Server, but when my program is at ftpConnect.uploadFile (filePath) I have the following error: \-- Error: SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 104), address = \<host\>, port = \<port\> I have my upload method : This SocketException occurs on the server-side when the client closed the socket connection before the response could be returned over the socket. Sign up for a free GitHub account to open an issue and contact its maintainers and the community. Please create a reproducible case of your problem. But Unfortunately after my upgrade none of my test case is running. The "User Directory" configuration in Jira works with the regular LDAP on port 389, but the LDAP over SSL on port 636 doesn't work. To subscribe to this RSS feed, copy and paste this URL into your RSS reader. import redis.clients.jedis.Jedis; I'd also ask him for a copy of his hosts file just in case you're trying to hit an endpoint that's resolved locally to his machine. What do you think? at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1971) ~[mssql-jdbc-7.0.0.jre8.jar:?] at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.writeToServer(SQLServerBulkCopy.java:1669) ~[mssql-jdbc-7.0.0.jre8.jar:?] return C_ERR; at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.doInsertBulk(SQLServerBulkCopy.java:1597) ~[mssql-jdbc-7.0.0.jre8.jar:?] i did not find the deprecated tag over the returnResource method. }. but when i write 55w data to redis server,this exception has been throwed. Also, if the firewall has a rule that allows incoming traffic from the client, but blocks all outgoing traffic from the server to the client, it may send an RST packet to the client to reset the connection when it receives a SYN-ACK packet from the server. The simplest one is when you close the socket and then write more data on the output stream. We have cloned their production Confluence and upgraded it to 6.13 which results in the SocketException: Connection reset whenever C tries to establish a connection with LDAP. then i think there is not enough memery,but i change env to my local, my local mem is 8g,and redisconf's [maxmemory] is default not be set,so i think the problom is not here, It is rarely happens, and generally incorrect, for application software to do this, but it is not unknown for commercial software. However, if the issue still exists, feel free to open a new one with all the information required in the template. repl_backlog_active:0 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.ExceptionServices/ExceptionDispatchInfo.cs:62 '{"cid":0,"map":[{"tid":180000,"tm":1431560060},{"tid":180001,"tm":1431560061},{"tid":180002,"tm":1431560062},{"tid":180003,"tm":1431560063}]}', Caused by: java.net.SocketException: Connection reset by peer: socket write error, https://github.com/xetorthio/jedis/wiki/Getting-started#using-jedis-in-a-multithreaded-environment, https://github.com/xetorthio/jedis/blob/2.7/src/main/java/redis/clients/jedis/JedisPool.java#L104-L119, https://github.com/xetorthio/jedis/blob/2.6/src/main/java/redis/clients/jedis/JedisPool.java#L87-L103, http://redis.io/topics/clients#query-buffer-hard-limit, https://github.com/antirez/redis/blob/unstable/src/networking.c#L1023-1027, Attemp read InputStream in connection is closed/reseted case for reasoning, Check multibulksize before write to output stream. @marcosnils No I could not found any docs about that. This is the error that SQL Server got when reading the data stream. Do more to earn more! Sending a REST message works just fine, but SOAP is the standard for the set of APIs that my team is working with. master_repl_offset:0 This is redis's log: at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7240) ~[mssql-jdbc-7.0.0.jre8.jar:?] Have a question about this project? private int cid = 0; Sign in spark - spark socketexception connection reset by peer. Browser: Connection reset typically means something fundamental is wrong with your setup and so either your message isn't getting to the endpoint at all or it's getting there in such an unexpected condition your endpoint doesnt recognise it (and I don't mean payload when I say unexpected condition - I mean something more basic). i am also having the same problem. This way it can be a helpful test to understand if the problem is with the certificate, or perhaps there is something more specific to Jira and the protocol being used. Or does it show some other connection error? thanks for your reply, when checking the SQL server log, following is captured, Error: 4014, Severity: 20, state: 11 How to set connection timeout with OkHttp. Were sorry. os:Linux 2.6.32-431.el6.x86_64 x86_64 at java.net.SocketOutputStream.socketWrite(Unknown Source) I made a patch to fix strange log behavior. Alternatively, the network scanner could send a forged RST packet to the server, pretending to be the client. We and our partners share information on your use of this website to help improve your experience. I did misconfigure the timeout and keepalive request values on my infrastructure. at redis.clients.jedis.Connection.sendCommand(Connection.java:78) Already on GitHub? new JedisPool(config, ProcessConfig.getInstance().getProperty("redisIp"), Integer.valueOf(ProcessConfig.getInstance().getProperty("redisPort")), 60 * 1000); import java.io.IOException; Another thing to notice is that the way you're calling hmset is not optimal in terms of memory and performance because you're basically generating a huge stream chunk and sending all the data to redis at once. But Unfortunately after my upgrade none of my test case is running. at sun.security.ssl.TransportContext.fatal(Unknown Source) ~[? You can manage most of database timeouts/stale connection issues with a proper configuration of Datasource validation. By clicking Sign up for GitHub, you agree to our terms of service and By closing the socket, you told your peer that you are done talking, and it can forget . What causes the following Server Log: Unable to process request. --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.ConfiguredTaskAwaitable1+ConfiguredTaskAwaiter[System.Int32].GetResult () [0x00034] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.CompilerServices/ConfiguredTaskAwaitable_T.cs:62 to your account. return map; at redis.clients.jedis.BinaryClient.hmset(BinaryClient.java:242) We are seeing frequent but intermittent java.net.SocketException: Connection reset errors in our logs. Connection reset simply means that a TCP RST was received. Also if you consider whether the title of your post is relevant? MacOS 10.12.6 Sierra --- End of stack trace from previous location where exception was thrown --- before the latest update (5.9 build 431) it worked ok. We ended up using ModernHttpClient and that solved our issue. All Rights Reserved. public void setMap(List map) { at redis.clients.util.RedisOutputStream.flushBuffer(RedisOutputStream.java:31) In this tutorial we will teach you which is the best action plan to find the root cause of the issue. blocked_clients:0, used_memory:9235096 Are you still seeing your issues? This means that every time you visit this website you will need to enable or disable cookies again. Any inputs to resolve this would be appreciated. The text was updated successfully, but these errors were encountered: i met the problem the same, more of 500 thousands of data in hashmap write failed with exception Share the love by gifting kudos to your peers. used_memory_lua:33792 Seems like you doesn't handle connection exception while returning instance to Pool. Are MSO formulae expressible as existential SO formulae over arbitrary structures? Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. rejected_connections:0 This happens when your peer receives data that it can't process, and there can be various reasons for that. When using VPN, I got response. Have a question about this project? :1.8.0_261] Otherwise, register and sign in. For example, by quitting the browser before the response was retrieved. Selenium Version: Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site You signed in with another tab or window. @HeartSaVioR realized that if you use the "VERBOSE" logevel you can see the error in redis logs (weird that in DEBUG it doesn't show up, @antirez is this possible?). at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy.writeResultSet(SQLServerBulkCopy.java:641) ~[mssql-jdbc-7.0.0.jre8.jar:?] privacy statement. jedis version is:2.2.1,(2.6.0 also) This is not about connection but about limitation of multibulk size. at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:7590) ~[mssql-jdbc-7.0.0.jre8.jar:?] And this is the response. Save and exit. I'm getting below exception. You can use tools such as iptables or ufw to view and configure the firewall rules on the system. @OverRide We are using Licensed ReadyAPI 3.3.0 . This doesnt happen very often. connected I/O Error: Connection reset by peer: socket write error Exception in component tMSSqlOutput_2 java.sql.SQLException: Invalid state, the Connection object is closed. public void close() { This happens when your peer receives data that it can't process, and there can be various reasons for that. }. when i use mset function to insert data redis, If the size of the data exceeds a certain amount it throw JedisConnectionException. How to install game with dependencies on Linux? System.Threading.Tasks.TaskCanceledException: The operation was canceled. Asking for help, clarification, or responding to other answers. It took a while to complete but I didn't get any exception. Do you have the timeout configuration parameter set in redis? Atlassian Team members are employees working across the company in a wide variety of roles. keyspace_hits:3559 Are project files cross-compatible between SoapUI Open Source and ReadyAPI? at com.microsoft.sqlserver.jdbc.TDSCommand.startResponse(IOBuffer.java:7629) ~[mssql-jdbc-7.0.0.jre8.jar:?] Yours have -2146893008. Caused by: redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketException: Connection reset by peer: socket write error Our Server Logs have been plagued by the following message for the last several months: We are seeing these errors pop up at an astounding frequency (114 times in the last 24 hours alone). import java.util.Map; Could you please try to disable Receive-Side scaling and Network Direct Memory Access too? Once you're in the file, add the IP address or range to the "ignoreip =+ line". This feature allows the switch to close idle TCP connections after a certain period of inactivity. 586), Starting the Prompt Design Site: A New Home in our Stack Exchange Neighborhood, Testing native, sponsored banner ads on Stack Overflow (starting July 6), Temporary policy: Generative AI (e.g., ChatGPT) is banned. I did try the SSLPoke utility and I get the same result if I have the Root certificates in my cacerts or with a new keystore. Why it's doing that, I can't say just yet. java.lang.RuntimeException: java.net.SocketException: Connection reset by peer at fr.dsidiff.pdf.client.PdfManagerHttpClient.convertAndSign (PdfManagerHttpClient.java:190) at fr.dsidiff.pdf.client.localhost.ClientPdfManagerApplicationConversionAndSignatureTest.convertAndSignWithStoredCertificateVeryBigFile (ClientPdfManagerApplicationConversi. at com.microsoft.sqlserver.jdbc.SQLServerBulkCopy$1InsertBulk.doExecute(SQLServerBulkCopy.java:705) ~[mssql-jdbc-7.0.0.jre8.jar:?] Not all calls fail, it's random and the call fails after waiting about one minute. Challenges come and go, but your rewards stay with you. Google Chrome Version 65.0.3325.181 (Official Build) (64-bit), Following Selenium web server version: 3.8.1 at redis.clients.jedis.Connection.sendCommand(Connection.java:95) Nothing seems to work. @lquterqtd @welyss any chance you can share a snippet that reproduces the error? Can someone help me here? Thanks @Manuel ! HI I am having the same issue, I have to hit the endpoint 3-4 times in ReadyAPI in order to get a successful response. Exception caught by adapter framework: java.net.SocketException: Connection reset by peer: socket write error Transmitting the message to endpoint <local> using connection File_http://sap.com/xi/XI/System failed, Why it succeeded to make another connection same time? WebDriverError - Connection reset by peer, Getting random error from WebDriver - Connection reset by peer, http://webdriver.io/guide/services/chromedriver.html. Well occasionally send you account related emails. config_file:/usr/local/redis/conf/redis.co, connected_clients:7 Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders. The content you requested has been removed. used_memory_rss:17690624 A slightly different case is java.net.SocketException: Connection reset by peer. @marcosnils I have checked and the query buffer limit (http://redis.io/topics/clients#query-buffer-hard-limit) is not being reached. From tcpdump Redis send RESP Errors before reset connection. What conjunctive function does "ruat caelum" have in "Fiat justitia, ruat caelum"? We are unsure as to where the Connection reset error is actually coming from, and how to go about debugging. import java.util.ArrayList; Resolving The Problem. do you mean the timeout configuration on the server? used_memory_human:8.81M I'll keep you up to date if we made any progress on our issue.Regards,Philipp, No, this still remains unsolved. at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00034] in /Developer/MonoTouch/Source/mono/mcs/class/corlib/System.Runtime.CompilerServices/ConfiguredTaskAwaitable.cs:62 Learn more here: How to validate Database connections in JBoss / WildFly, Finally, there can be an issue with the Java Client application connecting to the server. Thanks for sharing! I configured my load balancer and upstream servers to have the same values. when write 50w data(something like:a hashmap includes 50w row) to redis server,it works. Im using Netdata to monitor the server and this is a screenshot. Rising Stars are recognized for providing high-quality answers to other users. Draw the initial positions of Mlkky pins in ASCII art, Comic about an AI that equips its robot soldiers with spears and swords, Verb for "Placing undue weight on a specific factor when making a decision". You switched accounts on another tab or window. I triedwith JVM Arguments like using TLSV1 only or "plain ssl" as suggested in the community, but couldn't connect to AD over SSL. Have a question about this project? expired_keys:6 Getting InvalidSecurity error with Must Understand Hidden mockservice window after automatic start, SoapUI-5.7.0 OpenJDK 16.0.2 Vulnerability / Update. The problem is a setting local to your machine - I'd ask your Test Lead to check the 'WSDL Settings', 'SSL Settings' and the 'Proxy Settings' (within the ReadyAPI! total_commands_processed:892515 Is there a non-combative term for the word "enemy"? Access your remote server. This feature allows the switch to close idle TCP connections after a certain period of inactivity. Query buffer during protocol error: '*1099999..$4..MSET..$1..1..$87..aaaaaaaaqqqqqqqqqqqqqqqqqqqqqqqq' ( more 8056 bytes ) 'qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq..$2..81..$87..'; I found the redis networking.c 1173 row's code: I am using SQLBulkCopy class from MSSQL JDBC driver mssql-jdbc7.0.0.jre8 to perform synching of table from one database to another database; Some time i am getting exception "java.net.SocketException: Connection reset by peer: socket write error" intermittently especially if the table containing large amount of record E.G 1.1 million with about 40 column, I have set the SQLCopyOptions to have batch size at 3000, and with timeout settings 9000 seconds. I tried removing each header line individually, performing a test run between each removal: HOST = .corp..comSOAPAction = "urn::PatientAccessMobile.2020.Services.GetMessageDetail"Accept-Encoding = gzip,deflateUser-Agent =Apache-HttpClient/4.5.5 (Java/12.0.1)Connection = Keep-AliveContent-Type = text/xml;charset=UTF-8-Client-ID = 087fee8d-4259-49ae-8da9-99bdeeb33636Authorization = Basic ZW1wOjExNTU6ZXBpYw==. To learn more, see our tips on writing great answers. Then, the server is sending a RST packet to reset the connection. JIRA Connection reset error when synchronising with Active Directory 2012r2, Unable to Connect to SSL Services due to PKIX Path Building Failed, Connecting JIRA to Active Directory over LDAPS fails with "Connection reset". Finally, I do have the clientbuilder Where i set values for client and time outs: My issue is that call works fine for small files, but for rather big files : Thanks for contributing an answer to Stack Overflow! It was allowed from our corporate network so we were able to connect to AD over LDAPS from our desktops. The openssl command also doesn't give me any certificates. I think it's better to print out specific reason to redis log, but I don't know if this is spec. I guess this might be some redis/os limit we're hitting. at redis.clients.jedis.Jedis.hmset(Jedis.java:631) The issue was that our firewall was blocking the LDAP SSL traffic on port 636. This will help people when searching for problems. So in this case, limitation of max key/value pair if 524288, (1024*1024) / 2. The simplest is when you close the socket, and then write more data on the output stream. It can of course not be a simple network whitelist as the network connection can be established, it just doesn't go forward from there.Unfortunately, I'm not deeply familiar with what's possible in MS AD in these regards, but my tests lead me to the conclusion that it's neither a Confluence nor really a Java problem (since openssl's request is also not complete).I hope that helps. Nginx Load Balancer. Does Jira have the SSL certificate for this address in its keystore? This happens only for the iOS app, the same calls made on the Windows App are always successful. Enter "sudo nano /etc/fail2ban/jail.conf". This article was a walk through the analysis of the Connection reset error in a Java applicaion. Hi all, If you've already registered, sign in. used_cpu_user_children:3.52, db0:keys=21715,expires=18,avg_ttl=20991829. I frequently see this error, Im running Parse Health Check first every time I start the app. @Philipp Sendek [brainbits] I would also be interested to see if we can learn more about your environment, such as AD version, and if we can take a closer look at a tcpdump when Confluence attempts to establish this SSL connection. Restart the relevant daemons. See if your redis is running in protected mode, disable the protected mode. By clicking Sign up for GitHub, you agree to our terms of service and repl_backlog_first_byte_offset:0 Well, it is a networking problem, and you may help from networking people to track this down. at redis.clients.jedis.Protocol.sendCommand(Protocol.java:78) If not, then it might be possible for other applications to connect to this service using SSL from the same machine, but it could explain why Jira cannot. } else { A network switch can cause a TCP connection RESET between a client and a server when the connection is idle if the switch has a feature called "TCP idle timeout" enabled. If you cast a spell with Still and Silent metamagic, can you do so while wildshaped without natural spell? rdb_changes_since_last_save:1 The same with the HTTP server timeout that you have mentioned in the post youve attached. mem_allocator:jemalloc-3.2.0, loading:0 if (dataSource != null) { rdb_last_bgsave_status:ok Chrome the length of args of the API command MSET cant be bigger than 1024 * 1024, so the length of the array KeyValuePair uptime_in_days:0 This could be an architectural issue in your infrastructure, specifically the timeout configurations of network components. redis_mode:standalone A SocketException Connection reset is one of the most common Runtime errors you can find in Java applications. HOWEVER - if you're able to open the ReadyAPI! If you have access to the server, you can do it yourself. at System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x0003d] in /Developer/MonoTouch/Source/monotouch/build//Library/Frameworks/Xamarin.iOS.framework/Versions/git/src/mono/mcs/class/System/System.Net.Sockets/NetworkStream.cs:322 at redis.clients.jedis.Client.mset(Client.java:111) From tcpdump Redis send RESP Errors before reset connection. i used the default "timeout 0". Specifically for Heroku, but the concept applies also to your infrastructure. java.net.SocketException: Connection resetat java.net.SocketInputStream.read(SocketInputStream.java:209)at java.net.SocketInputStream.read(SocketInputStream.java:141)at sun.security.ssl.InputRecord.readFully(InputRecord.java:465)at sun.security.ssl.InputRecord.read(InputRecord.java:503)at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747)at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123)at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:138)at SSLPoke.main(SSLPoke.java:31), Hi@Gayam,we just encounter the same issue at a client and I was wondering if you were able to solve it.Would appreciate your feedback.Regards,Philipp. Chimney offload state: disabled, Error: 4014, Severity: 20, state: 11 A fatal error occured while reading the input stream from the network. Should I disclose my academic dishonesty on grad applications? java.net.SocketException: Connection reset OKHTTP, OkHttp Connection reset if connection is enabled, Can Retrofit with OKHttp use cache data when offline, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, The future of collective knowledge sharing, Post a json with a base64 file > 20Mo with OKHttp : connection reset. There are several possible causes for this error, such as: Firstly, if the firewall has a rule that blocks all incoming traffic from the client, it may send an RST packet to the server to reset the connection as soon as it receives a SYN packet from the client. A Connection reset indicates that a TCP RST was successfully received. at java.net.SocketOutputStream.socketWrite0(Native Method) Finally, if the firewall has a rule that allows incoming traffic from the client, but blocks all outgoing traffic from the server to the client based on the content of the packets, it may send an RST packet to the client to reset the connection when it receives a SYN-ACK packet from the server that contains data that matches the specified criteria. rdb_bgsave_in_progress:0 It seems like this should be easy to debug, but when I trace through a good request on the service side, it looks just like the bad request, in the socket._socketobject.close () function, turning delegate methods into dummy methods. And this is the response ParseException (Type: UnknownError) : Code: -1 Message: ---- Followed by We are doing an issue clean up, so I will close this issue. However, if I use the actual UI (Mobile app) to hit the exact same endpoint it works every time. Maybe Protocol.sendCommand is good point. at first,i think it's caused by timeout,but i set maxtimewait from 1000*1000 to -1, it also doesn't work. But upon testing it on Android 11. How to use OKHTTP to make a post request? Caused by: java.net.SocketException: Connection reset at java.net.SocketInputStream.read (SocketInputStream.java:210) at java.net.SocketInputStream.read (SocketInputStream.java:141) at. and setting up Basic authorization. Join now to unlock these features and more. Changing non-standard date timestamp format in CSV using awk/sed. Hey @Manuel thanks for taking me on the right path. timeout period) of the Database server. Sign in All Rights Reserved. @lquterqtd by just looking at the code I see that you're not handling exceptions correctly. Above are the errors, I'm receiving every-time. socket exceptions are typically related to the networking protocol TLS/SSL - if it mentioned SSL in the error response I'd switch from HTTP to HTTPS or back again which is typically the thing that catches me out when I get socket exceptions. at com.microsoft.sqlserver.jdbc.TDSChannel.read(IOBuffer.java:1971) ~[mssql-jdbc-7.0.0.jre8.jar:?] Make sure private static JedisPool pool = null; @lquterqtd I think from your description, you have already seen the KB JIRA Connection reset error when synchronising with Active Directory 2012r2, because you have mentioned trying to set the JVM startup parameter of. This will result in a premature termination of the connection between the client and the server at the network layer. System.TimeoutException: The operation was canceled. privacy statement. Making calls to a webservice sometimes end in failure with the following exception: System.IO.IOException: EndRead failure ---> System.Net.Sockets.SocketException: Connection reset by peer