1. 0.3.1 连接修复

This commit is contained in:
jianguo 2024-06-03 13:59:41 +08:00
parent 79da72c6ea
commit 8f0175641f
3 changed files with 3 additions and 3 deletions

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -6,7 +6,7 @@
<groupId>org.aohe</groupId> <groupId>org.aohe</groupId>
<artifactId>sane-service</artifactId> <artifactId>sane-service</artifactId>
<version>0.3.0</version> <version>0.3.1</version>
<name>aohe-sane-service</name> <name>aohe-sane-service</name>
@ -146,9 +146,8 @@
<administratorRequired>false</administratorRequired> <administratorRequired>false</administratorRequired>
<platform>linux</platform> <platform>linux</platform>
<displayName>奥诃影像扫描控件</displayName> <displayName>奥诃影像扫描控件</displayName>
<description>Sane's socket access programme for use with WEB.</description> <description>奥诃公司为影像 WEB 应用开发的 USB 扫描仪连接驱动,请搭配 WEB 产品使用。</description>
<linuxConfig> <linuxConfig>
<pngFile>src/main/resources/linux/aohe-sane-service.png</pngFile>
<generateAppImage>true</generateAppImage> <generateAppImage>true</generateAppImage>
<generateDeb>true</generateDeb> <generateDeb>true</generateDeb>
<generateRpm>true</generateRpm> <generateRpm>true</generateRpm>

View File

@ -32,6 +32,7 @@ public class SocketFactory {
private static SocketServer getSocket() throws UnknownHostException { private static SocketServer getSocket() throws UnknownHostException {
log.info("Create Socket ..."); log.info("Create Socket ...");
socketServer = new SocketServer(8997); socketServer = new SocketServer(8997);
socketServer.setReuseAddr(true);
return socketServer; return socketServer;
} }