拔出插头 英语

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了拔出插头 英语相关的知识,希望对你有一定的参考价值。

1 拨出插头 / 插入插头

2 把插头 插入插座里

3 拔出车钥匙 / 插入车钥匙

4 插上那个电脑插头

5 你这样开车很费油

6 他开车很省油的

7 手机充满电了,拔掉插头吧

8 把卡片插入读卡器

9 别吃油炸食品

谢谢。。

参考技术A 1. pull plugs/insert plugs
2. socket the plug
3. unplug the car key/ insert the car key
4.put the electric plug of computer into the socket
5, It's a waste of oil driving like this.
6.He saves oil while driving.
7When the cellpoone gets fully charged,please get the piug out of the socket.
8. Insert the card into the cardreader
9. Don't eat fried food.本回答被提问者和网友采纳
参考技术B 1 dials the plug / plug
2 put the plug in the socket
3 pull off key / insert the vehicle key
4 insert the computer plug
5 you car consumes a lot of fuel
In 6 he drove very fuel-efficient
The 7 mobile phone is fully charged, pull the plug.
The 8 card is inserted into the card reader
9 do not eat fried food

Websocket 块在客户端插头拔出/断电时不会超时

【中文标题】Websocket 块在客户端插头拔出/断电时不会超时【英文标题】:Websocket blocks without timing out on client plug pull/power loss 【发布时间】:2018-02-10 00:24:23 【问题描述】:

我的 Tomcat + Spring websocket 应用程序有一个奇怪的问题。当用户在没有发送“关闭”信号的情况下断开连接时,由于断电或拔插头,线程将在大约 10 秒后阻塞

这个函数的线程阻塞:

org.springframework.web.socket.WebSocketSession.sendMessage(WebSocketMessage<?> wsm) throws IOException;

我尝试在我的 AppConfig 中添加一条线以尝试设置 3 秒的超时,但它似乎无法正常工作,因为 块似乎持续了 15 分钟以上,然后才抛出异常

@Bean(name="servletServerContainerFactoryBean")
public int maxSessionIdleTimeout() 
  return 3000;

这是 eventual SocketTimeoutException 之后的堆栈跟踪

Step: 2304
SendB -> test isOpen -> sendMes -> Done -> Finished Send.
SendB -> test2 isOpen -> sendMes -> User closed connection during packet sending: s01
Propogating exception up!
java.io.IOException: java.net.SocketTimeoutException
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:315)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:250)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:223)
    at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:49)
    at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendTextMessage(StandardWebSocketSession.java:197)
    at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:102)
    at org.infpls.noxio.game.module.game.session.NoxioSession.sendPacket(NoxioSession.java:40)
    at org.infpls.noxio.game.module.game.dao.lobby.GameLobby.step(GameLobby.java:117)
    at org.infpls.noxio.game.module.game.dao.lobby.GameLobby$GameLoop.run(GameLobby.java:274)
Caused by: java.net.SocketTimeoutException
    at org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.doWrite(WsRemoteEndpointImplServer.java:81)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:494)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:309)
    ... 8 more
## CRITICAL ## Ejecting player: test2 :: Exception thrown on packet send...
java.io.IOException: java.net.SocketTimeoutException
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:315)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:250)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendPartialString(WsRemoteEndpointImplBase.java:223)
    at org.apache.tomcat.websocket.WsRemoteEndpointBasic.sendText(WsRemoteEndpointBasic.java:49)
    at org.springframework.web.socket.adapter.standard.StandardWebSocketSession.sendTextMessage(StandardWebSocketSession.java:197)
    at org.springframework.web.socket.adapter.AbstractWebSocketSession.sendMessage(AbstractWebSocketSession.java:102)
    at org.infpls.noxio.game.module.game.session.NoxioSession.sendPacket(NoxioSession.java:40)
    at org.infpls.noxio.game.module.game.dao.lobby.GameLobby.step(GameLobby.java:117)
    at org.infpls.noxio.game.module.game.dao.lobby.GameLobby$GameLoop.run(GameLobby.java:274)
Caused by: java.net.SocketTimeoutException
    at org.apache.tomcat.websocket.server.WsRemoteEndpointImplServer.doWrite(WsRemoteEndpointImplServer.java:81)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.writeMessagePart(WsRemoteEndpointImplBase.java:494)
    at org.apache.tomcat.websocket.WsRemoteEndpointImplBase.sendMessageBlock(WsRemoteEndpointImplBase.java:309)
    ... 8 more
Finished Send. Step Finished.

一次阻塞线程 15 分钟是一个主要问题。任何有关为什么会发生这种情况以及如何解决它的信息将不胜感激。谢谢!

【问题讨论】:

【参考方案1】:

终于找到答案了。这实际上是一个系统设置。

Source

How many times to retry before deciding that something is wrong and
it is necessary to report this suspicion to network layer. Minimal RFC
value is 3, it is default, which corresponds to  3sec-8min depending on
RTO.
/proc/sys/net/ipv4/tcp_retries2

【讨论】:

以上是关于拔出插头 英语的主要内容,如果未能解决你的问题,请参考以下文章

记录英语单词19.06.23

打印机提示“administrator”不能打印怎么办?

Switch Socket

英式英语和美式英语的单词一样吗

英式英语和美式英语有啥区别?

如何区别英式英语和美式英语?