Comments (4)
Could I detect local connections for RMI as well, using RemoteServer.getClientHost()?
With that, I could also prevent issuing of multiple tokens to the same client machine :-)
from pityoulish.
In an online setting, everyone might be running a follow-the-board client, see #97.
I could use a magic number for the maximum batch size to reduce logging.
from pityoulish.
The Sockets server prints three messages for each request from the FTB client:
SimplisticSocketHandler: MBSS013: Connection from /127.0.0.1:58286.
MBSS023: Received LIST_MESSAGES from /127.0.0.1.
MBSS026: Returning 2 with marker "Oy".
The magic batch size works for the latter two.
The first one is printed before the request data is received.
For the remote exercise, I'd have to jump through hoops to distinguish FTB clients from others. I could bind the FTB clients to a specific port and check that on the server. Sounds unreasonable.
Reasonably, either print messages about all connections, or about none. Printing only the first one from each client IP would not be helpful. If students are running FTB clients, they wouldn't get connection reports for the client they're debugging.
from pityoulish.
How about setting an environment variable to enable/disable printing of connections?
Default is to print, use a setting in the pod yaml to disable.
Even simpler: let the Main class for the pod set the behavior to silent.
from pityoulish.
Related Issues (20)
- Thread safety for MessageBoard implementations HOT 1
- Run server in IBM Cloud HOT 8
- Push image to public GitHub Container Registry HOT 2
- About deleting container images... HOT 2
- Feedback: Tutorial 2020
- Feedback: Sockets 2020
- Disable Client IP check when running in the Cloud HOT 2
- Upgrade Actions to use environment files HOT 1
- Feedback: Java RMI 2020
- Migrate Travis CI HOT 2
- Transfer repository to the "pityoulish" organization HOT 2
- Feedback: Sockets 2019
- Sockets: detect response from HTTP server
- Feedback: Java RMI 2019
- Java RMI: prevent multiple tickets for same client HOT 2
- Fix JavaDoc warnings HOT 2
- Java RMI: split off the Direct Messages part
- Build: Travis integration is broken HOT 4
- Take the exercises online HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pityoulish.